
## Margin class

Specifies the margin.

## Constructors

| Name | Description |
| --- | --- |
| [Margin](#constructor) | Constructor. |

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [Unit](#unit) | int | Represents a unit of measure. The default is DP. The value of the property is MeasureConst integer constant. |
| [Value](#value) | float | Specifies the margin. |

## Methods

| Name | Description |
| --- | --- |
| [equals](#equals) | Are objects equal. |
| [hashCode](#hashcode) | Serves as a hash function for a particular type. |

### Margin(value, unit) {#constructor}

Constructor.

| Parameter | Type | Description |
| --- | --- | --- |
| value | float |  |
| unit | int | A MeasureConst value. |

### Margin.Unit property {#unit}

Represents a unit of measure. The default is DP. The value of the property is MeasureConst integer constant.

**Type:** int

### Margin.Value property {#value}

Specifies the margin.

**Type:** float

### equals(value) {#equals}

Are objects equal.

| Parameter | Type | Description |
| --- | --- | --- |
| value | Object |  |

### hashCode() {#hashcode}

Serves as a hash function for a particular type.
