Margins
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(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. |
Fields
| Field | Description |
|---|---|
| Empty | The empty margins. |
Methods
| Method | Description |
|---|---|
| Clone() | |
| CloneTo(Margins that) | |
| clone() | |
| equals(Margins other) | |
| equals(Margins obj1, Margins obj2) | |
| equals(Object obj) | Tests whether two T:Margins structures are equal. |
| getBottom() | Gets or sets the bottom margin width. |
| getLeft() | Gets or sets the left margin width. |
| getRight() | Gets or sets the right margin width. |
| getTop() | Gets or sets the top margin width. |
| op_Equality(Margins lhs, Margins rhs) | Tests whether two T:Margins structures are equal. |
| op_Inequality(Margins lhs, Margins rhs) | Tests whether two T:Margins structures are not equal. |
| setBottom(float value) | Gets or sets the bottom margin width. |
| setLeft(float value) | Gets or sets the left margin width. |
| setRight(float value) | Gets or sets the right margin width. |
| setTop(float value) | Gets or sets the top margin width. |
Margins()
public Margins()
Margins(float left, float right, float top, float bottom)
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
public static final Margins Empty
The empty margins.
Clone()
public Margins Clone()
Returns: Margins
CloneTo(Margins that)
public void CloneTo(Margins that)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| that | Margins |
clone()
public Object clone()
Returns: java.lang.Object
equals(Margins other)
public boolean equals(Margins other)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | Margins |
Returns: boolean
equals(Margins obj1, Margins obj2)
public static boolean equals(Margins obj1, Margins obj2)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj1 | Margins | |
| obj2 | Margins |
Returns: boolean
equals(Object obj)
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()
public float getBottom()
Gets or sets the bottom margin width.
Returns: float
getLeft()
public float getLeft()
Gets or sets the left margin width.
Returns: float
getRight()
public float getRight()
Gets or sets the right margin width.
Returns: float
getTop()
public float getTop()
Gets or sets the top margin width.
Returns: float
op_Equality(Margins lhs, Margins rhs)
public static boolean op_Equality(Margins lhs, Margins rhs)
Tests whether two T:Margins structures are equal.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| lhs | Margins | The T:Margins structure. |
| rhs | Margins | The T:Margins structure to be compared with. |
Returns:
boolean - The bool.
op_Inequality(Margins lhs, Margins rhs)
public static boolean op_Inequality(Margins lhs, Margins rhs)
Tests whether two T:Margins structures are not equal.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| lhs | Margins | The T:Margins structure. |
| rhs | Margins | The T:Margins structure to be compared with. |
Returns:
boolean - The bool.
setBottom(float value)
public void setBottom(float value)
Gets or sets the bottom margin width.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float |
setLeft(float value)
public void setLeft(float value)
Gets or sets the left margin width.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float |
setRight(float value)
public void setRight(float value)
Gets or sets the right margin width.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float |
setTop(float value)
public void setTop(float value)
Gets or sets the top margin width.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float |