SaveOptions.MarginPartStyle

Inheritance: java.lang.Object, com.aspose.pdf.SaveOptions.MarginPartStyle

public static class SaveOptions.MarginPartStyle extends Object

Represents information of one part of margin(top, botom, left side or right side)

Constructors

ConstructorDescription
MarginPartStyleCreates instance of MarginPartStyle class and initializes its value in points
MarginPartStyleCreates instance of MarginPartStyle class and set its value in points

Methods

MethodDescription
getValueInPointsRepresents margin in points. Must be number greater then zero.
isAutoGets or sets a value indicating whether this instance is auto. Value: {@code true} if this instance is auto; otherwise, {@code false}.
setAutoGets or sets a value indicating whether this instance is auto. Value: {@code true} if this instance is auto; otherwise, {@code false}.
setValueInPointsRepresents margin in points. Must be number greater then zero.

MarginPartStyle

public MarginPartStyle(boolean isAuto)

Creates instance of MarginPartStyle class and initializes its value in points

Parameters:

ParameterTypeDescription
isAutoMark margin auto

MarginPartStyle

public MarginPartStyle(int valueInPoints)

Creates instance of MarginPartStyle class and set its value in points

Parameters:

ParameterTypeDescription
valueInPointsInteger value in points

getValueInPoints

public final int getValueInPoints()

Represents margin in points. Must be number greater then zero.

Returns: int value

isAuto

public final boolean isAuto()

Gets or sets a value indicating whether this instance is auto. Value: {@code true} if this instance is auto; otherwise, {@code false}.

Returns: boolean value

setAuto

public final void setAuto(boolean value)

Gets or sets a value indicating whether this instance is auto. Value: {@code true} if this instance is auto; otherwise, {@code false}.

Parameters:

ParameterTypeDescription
valueboolean value

setValueInPoints

public final void setValueInPoints(int value)

Represents margin in points. Must be number greater then zero.

Parameters:

ParameterTypeDescription
valueint value