
**Inheritance:**
java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct

**All Implemented Interfaces:**
com.aspose.ms.System.IEquatable
```
public class Margins extends Struct<Margins> implements System.IEquatable<Margins>
```

Specifies the dimensions of the margins of a node.
## Constructors

| Constructor | Description |
| --- | --- |
| [Margins()](#Margins--) |  |
| [Margins(float left, float right, float top, float bottom)](#Margins-float-float-float-float-) | Initializes a new instance of the `Margins` struct with the specified left, right, top, and bottom margins. |
## Fields

| Field | Description |
| --- | --- |
| [Empty](#Empty) | The empty margins. |
## Methods

| Method | Description |
| --- | --- |
| [Clone()](#Clone--) |  |
| [CloneTo(Margins that)](#CloneTo-com.aspose.note.Margins-) |  |
| [clone()](#clone--) |  |
| [equals(Margins other)](#equals-com.aspose.note.Margins-) |  |
| [equals(Margins obj1, Margins obj2)](#equals-com.aspose.note.Margins-com.aspose.note.Margins-) |  |
| [equals(Object obj)](#equals-java.lang.Object-) | Tests whether two `T:Margins` structures are equal. |
| [getBottom()](#getBottom--) | Gets or sets the bottom margin width. |
| [getLeft()](#getLeft--) | Gets or sets the left margin width. |
| [getRight()](#getRight--) | Gets or sets the right margin width. |
| [getTop()](#getTop--) | Gets or sets the top margin width. |
| [op_Equality(Margins lhs, Margins rhs)](#op-Equality-com.aspose.note.Margins-com.aspose.note.Margins-) | Tests whether two `T:Margins` structures are equal. |
| [op_Inequality(Margins lhs, Margins rhs)](#op-Inequality-com.aspose.note.Margins-com.aspose.note.Margins-) | Tests whether two `T:Margins` structures are not equal. |
| [setBottom(float value)](#setBottom-float-) | Gets or sets the bottom margin width. |
| [setLeft(float value)](#setLeft-float-) | Gets or sets the left margin width. |
| [setRight(float value)](#setRight-float-) | Gets or sets the right margin width. |
| [setTop(float value)](#setTop-float-) | Gets or sets the top margin width. |
### Margins() {#Margins--}
```
public Margins()
```


### Margins(float left, float right, float top, float bottom) {#Margins-float-float-float-float-}
```
public Margins(float left, float right, float top, float bottom)
```


Initializes a new instance of the `Margins` struct with the specified left, right, top, and bottom margins.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| left | float | The left margin width. |
| right | float | The right margin width. |
| top | float | The top margin width. |
| bottom | float | The bottom margin width. |

### Empty {#Empty}
```
public static final Margins Empty
```


The empty margins.

### Clone() {#Clone--}
```
public Margins Clone()
```




**Returns:**
[Margins](../../com.aspose.note/margins)
### CloneTo(Margins that) {#CloneTo-com.aspose.note.Margins-}
```
public void CloneTo(Margins that)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| that | [Margins](../../com.aspose.note/margins) |  |

### clone() {#clone--}
```
public Object clone()
```




**Returns:**
java.lang.Object
### equals(Margins other) {#equals-com.aspose.note.Margins-}
```
public boolean equals(Margins other)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| other | [Margins](../../com.aspose.note/margins) |  |

**Returns:**
boolean
### equals(Margins obj1, Margins obj2) {#equals-com.aspose.note.Margins-com.aspose.note.Margins-}
```
public static boolean equals(Margins obj1, Margins obj2)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| obj1 | [Margins](../../com.aspose.note/margins) |  |
| obj2 | [Margins](../../com.aspose.note/margins) |  |

**Returns:**
boolean
### equals(Object obj) {#equals-java.lang.Object-}
```
public boolean equals(Object obj)
```


Tests whether two `T:Margins` structures are equal.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| obj | java.lang.Object | Any object. |

**Returns:**
boolean - The `bool`.
### getBottom() {#getBottom--}
```
public float getBottom()
```


Gets or sets the bottom margin width.

**Returns:**
float
### getLeft() {#getLeft--}
```
public float getLeft()
```


Gets or sets the left margin width.

**Returns:**
float
### getRight() {#getRight--}
```
public float getRight()
```


Gets or sets the right margin width.

**Returns:**
float
### getTop() {#getTop--}
```
public float getTop()
```


Gets or sets the top margin width.

**Returns:**
float
### op_Equality(Margins lhs, Margins rhs) {#op-Equality-com.aspose.note.Margins-com.aspose.note.Margins-}
```
public static boolean op_Equality(Margins lhs, Margins rhs)
```


Tests whether two `T:Margins` structures are equal.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| lhs | [Margins](../../com.aspose.note/margins) | The `T:Margins` structure. |
| rhs | [Margins](../../com.aspose.note/margins) | The `T:Margins` structure to be compared with. |

**Returns:**
boolean - The `bool`.
### op_Inequality(Margins lhs, Margins rhs) {#op-Inequality-com.aspose.note.Margins-com.aspose.note.Margins-}
```
public static boolean op_Inequality(Margins lhs, Margins rhs)
```


Tests whether two `T:Margins` structures are not equal.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| lhs | [Margins](../../com.aspose.note/margins) | The `T:Margins` structure. |
| rhs | [Margins](../../com.aspose.note/margins) | The `T:Margins` structure to be compared with. |

**Returns:**
boolean - The `bool`.
### setBottom(float value) {#setBottom-float-}
```
public void setBottom(float value)
```


Gets or sets the bottom margin width.

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

### setLeft(float value) {#setLeft-float-}
```
public void setLeft(float value)
```


Gets or sets the left margin width.

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

### setRight(float value) {#setRight-float-}
```
public void setRight(float value)
```


Gets or sets the right margin width.

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

### setTop(float value) {#setTop-float-}
```
public void setTop(float value)
```


Gets or sets the top margin width.

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

