# DeviceBorder

Namespace: **Wisej.Hybrid**

Assembly: **Wisej.Hybrid** (3.5.0.0)

Provides methods to interact with the device's border.

{% tabs %}
{% tab title="C#" %}

```csharp
public class DeviceBorder
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DeviceBorder
```

{% endtab %}
{% endtabs %}

Access this class through the [Device](https://docs.wisej.com/hybrid/start/api/general/wisej.hybrid.device) singleton.

## Constructors

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)DeviceBorder()

Initializes a new instance of [DeviceBorder](https://docs.wisej.com/hybrid/start/api/ui/wisej.hybrid.deviceborder).

## Methods

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SetColor(color)

Sets the device's borders to the given color.

| Parameter | Type                                                                | Description          |
| --------- | ------------------------------------------------------------------- | -------------------- |
| **color** | [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) | The new border color |
