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

ConstructorDescription
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

FieldDescription
EmptyThe empty margins.

Methods

MethodDescription
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:

ParameterTypeDescription
leftfloatThe left margin width.
rightfloatThe right margin width.
topfloatThe top margin width.
bottomfloatThe 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:

ParameterTypeDescription
lhsMarginsThe T:Margins structure.
rhsMarginsThe 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:

ParameterTypeDescription
lhsMarginsThe T:Margins structure.
rhsMarginsThe T:Margins structure to be compared with.

Returns: boolean - The bool .

equals(Margins other)

public boolean equals(Margins other)

Parameters:

ParameterTypeDescription
otherMargins

Returns: boolean

equals(Object obj)

public boolean equals(Object obj)

Tests whether two T:Margins structures are equal.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectAny 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:

ParameterTypeDescription
valuefloat

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:

ParameterTypeDescription
valuefloat

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:

ParameterTypeDescription
valuefloat

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:

ParameterTypeDescription
valuefloat

CloneTo(Margins that)

public void CloneTo(Margins that)

Parameters:

ParameterTypeDescription
thatMargins

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:

ParameterTypeDescription
obj1Margins
obj2Margins

Returns: boolean