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

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.

Clone()

public Margins Clone()

Returns: Margins

CloneTo(Margins that)

public void CloneTo(Margins that)

Parameters:

ParameterTypeDescription
thatMargins

clone()

public Object clone()

Returns: java.lang.Object

equals(Margins other)

public boolean equals(Margins other)

Parameters:

ParameterTypeDescription
otherMargins

Returns: boolean

equals(Margins obj1, Margins obj2)

public static boolean equals(Margins obj1, Margins obj2)

Parameters:

ParameterTypeDescription
obj1Margins
obj2Margins

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.

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:

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.

setBottom(float value)

public void setBottom(float value)

Gets or sets the bottom margin width.

Parameters:

ParameterTypeDescription
valuefloat

setLeft(float value)

public void setLeft(float value)

Gets or sets the left margin width.

Parameters:

ParameterTypeDescription
valuefloat

setRight(float value)

public void setRight(float value)

Gets or sets the right margin width.

Parameters:

ParameterTypeDescription
valuefloat

setTop(float value)

public void setTop(float value)

Gets or sets the top margin width.

Parameters:

ParameterTypeDescription
valuefloat