MarginInfo

Inheritance: java.lang.Object, com.aspose.pdf.MarginInfo

All Implemented Interfaces: com.aspose.ms.System.ICloneable

public final class MarginInfo extends Object implements com.aspose.ms.System.ICloneable

This class represents a margin for different objects.

Constructors

ConstructorDescription
MarginInfoInitializes a new instance of the {@code MarginInfo} class.
MarginInfoConstructor of Rectangle.

Methods

MethodDescription
deepCloneClones a new {@code MarginInfo} object.
getBottomGets a float value that indicates the bottom margin.
getLeftGets a float value that indicates the left margin.
getRightGets a float value that indicates the right margin.
getTopGets a float value that indicates the top margin.
setBottomSets a float value that indicates the bottom margin.
setLeftSets a float value that indicates the left margin.
setRightSets a float value that indicates the right margin.
setTopSets a float value that indicates the top margin.

MarginInfo

public MarginInfo()

Initializes a new instance of the {@code MarginInfo} class.

MarginInfo

public MarginInfo(double left, double bottom, double right, double top)

Constructor of Rectangle.

Parameters:

ParameterTypeDescription
leftLeft margin.
bottomBottom margin
rightRight margin.
topTop margin.

deepClone

public Object deepClone()

Clones a new {@code MarginInfo} object.

Returns: The new object.

getBottom

public double getBottom()

Gets a float value that indicates the bottom margin.

Returns: double value

getLeft

public double getLeft()

Gets a float value that indicates the left margin.

Returns: double value

getRight

public double getRight()

Gets a float value that indicates the right margin.

Returns: double value

getTop

public double getTop()

Gets a float value that indicates the top margin.

Returns: double value

setBottom

public void setBottom(double value)

Sets a float value that indicates the bottom margin.

Parameters:

ParameterTypeDescription
valuedouble value

setLeft

public void setLeft(double value)

Sets a float value that indicates the left margin.

Parameters:

ParameterTypeDescription
valuedouble value

setRight

public void setRight(double value)

Sets a float value that indicates the right margin.

Parameters:

ParameterTypeDescription
valuedouble value

setTop

public void setTop(double value)

Sets a float value that indicates the top margin.

Parameters:

ParameterTypeDescription
valuedouble value