
**Inheritance:**
java.lang.Object
```
public class Margin
```

Specifies the margin.
## Constructors

| Constructor | Description |
| --- | --- |
| [Margin(double value, int unit)](#Margin-double-int-) | Constructor. |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object value)](#equals-java.lang.Object-) | Are objects equal. |
| [getClass()](#getClass--) |  |
| [getUnit()](#getUnit--) | Represents a unit of measure. |
| [getValue()](#getValue--) | Specifies the margin. |
| [hashCode()](#hashCode--) | Serves as a hash function for a particular type. |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setUnit(int value)](#setUnit-int-) | For the description of this property, please see [getUnit()](../../com.aspose.diagram/margin\#getUnit--) |
| [setValue(double value)](#setValue-double-) | For the description of this property, please see [getValue()](../../com.aspose.diagram/margin\#getValue--) |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### Margin(double value, int unit) {#Margin-double-int-}
```
public Margin(double value, int unit)
```


Constructor.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double |  |
| unit | int |  |

### equals(Object value) {#equals-java.lang.Object-}
```
public boolean equals(Object value)
```


Are objects equal.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.Object |  |

**Returns:**
boolean - 
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getUnit() {#getUnit--}
```
public int getUnit()
```


Represents a unit of measure. The default is DP.

**Returns:**
int
### getValue() {#getValue--}
```
public double getValue()
```


Specifies the margin.

**Returns:**
double
### hashCode() {#hashCode--}
```
public int hashCode()
```


Serves as a hash function for a particular type.

**Returns:**
int - 
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setUnit(int value) {#setUnit-int-}
```
public void setUnit(int value)
```


For the description of this property, please see [getUnit()](../../com.aspose.diagram/margin\#getUnit--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setValue(double value) {#setValue-double-}
```
public void setValue(double value)
```


For the description of this property, please see [getValue()](../../com.aspose.diagram/margin\#getValue--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

