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 |
---|---|
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. |
equals(Margins other) | |
equals(Object obj) | Tests whether two T:Margins structures are equal. |
getLeft() | Gets or sets the left margin width. |
setLeft(float value) | Gets or sets the left margin width. |
getRight() | Gets or sets the right margin width. |
setRight(float value) | Gets or sets the right margin width. |
getTop() | Gets or sets the top margin width. |
setTop(float value) | Gets or sets the top margin width. |
getBottom() | Gets or sets the bottom margin width. |
setBottom(float value) | Gets or sets the bottom margin width. |
CloneTo(Margins that) | |
Clone() | |
clone() | |
equals(Margins obj1, Margins obj2) |
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.
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 .
equals(Margins other)
public boolean equals(Margins other)
Parameters:
Parameter | Type | Description |
---|---|---|
other | 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 .
getLeft()
public float getLeft()
Gets or sets the left margin width.
Returns: float
setLeft(float value)
public void setLeft(float value)
Gets or sets the left margin width.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
getRight()
public float getRight()
Gets or sets the right margin width.
Returns: float
setRight(float value)
public void setRight(float value)
Gets or sets the right margin width.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
getTop()
public float getTop()
Gets or sets the top margin width.
Returns: float
setTop(float value)
public void setTop(float value)
Gets or sets the top margin width.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
getBottom()
public float getBottom()
Gets or sets the bottom margin width.
Returns: float
setBottom(float value)
public void setBottom(float value)
Gets or sets the bottom margin width.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
CloneTo(Margins that)
public void CloneTo(Margins that)
Parameters:
Parameter | Type | Description |
---|---|---|
that | Margins |
Clone()
public Margins Clone()
Returns: Margins
clone()
public Object clone()
Returns: java.lang.Object
equals(Margins obj1, Margins obj2)
public static boolean equals(Margins obj1, Margins obj2)
Parameters:
Parameter | Type | Description |
---|---|---|
obj1 | Margins | |
obj2 | Margins |
Returns: boolean