SaveOptions.MarginPartStyle

Inheritance: java.lang.Object

public static class SaveOptions.MarginPartStyle

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

Constructors

ConstructorDescription
MarginPartStyle(int valueInPoints)Creates instance of MarginPartStyle class and set its value in points
MarginPartStyle(boolean isAuto)Creates instance of MarginPartStyle class and initializes its value in points

Methods

MethodDescription
isAuto()Gets or sets a value indicating whether this instance is auto.
setAuto(boolean value)Gets or sets a value indicating whether this instance is auto.
getValueInPoints()Represents margin in points.
setValueInPoints(int value)Represents margin in points.

MarginPartStyle(int valueInPoints)

public MarginPartStyle(int valueInPoints)

Creates instance of MarginPartStyle class and set its value in points

Parameters:

ParameterTypeDescription
valueInPointsintInteger value in points

MarginPartStyle(boolean isAuto)

public MarginPartStyle(boolean isAuto)

Creates instance of MarginPartStyle class and initializes its value in points

Parameters:

ParameterTypeDescription
isAutobooleanMark margin auto

isAuto()

public final boolean isAuto()

Gets or sets a value indicating whether this instance is auto.

Value: true if this instance is auto; otherwise, false .

Returns: boolean - boolean value

setAuto(boolean value)

public final void setAuto(boolean value)

Gets or sets a value indicating whether this instance is auto.

Value: true if this instance is auto; otherwise, false .

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getValueInPoints()

public final int getValueInPoints()

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

Returns: int - int value

setValueInPoints(int value)

public final void setValueInPoints(int value)

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

Parameters:

ParameterTypeDescription
valueintint value