ParagraphStyle

Inheritance: java.lang.Object, com.aspose.pub.BaseStyle

public class ParagraphStyle extends BaseStyle

This class describes style of PUB paragraph

Constructors

ConstructorDescription
ParagraphStyle()Constructor

Methods

MethodDescription
getAlign()Alignment type
setAlignmentType(byte value)Sets alignment type
getDefaultStyleIndex()Index of default text style in Document.DefaultTextStyles array
setDefaultStyleIndex(int value)Sets index for default text style in Document.DefaultTextStyles array
getLineSpacingValue()Value of line spacing
setLineSpacingValue(double value)Sets value of line spacing
getLineSpacingType()Type of line spacing
setLineSpacingType(byte value)Sets type of line spacing
getTopIndent()Top indent value
setTopIndent(int value)Sets top indent
getBottomIndent()Bottom indent
setBottomIndent(int value)Sets bottom indent
getFirstLineIndent()First line indent
setFirstLineIndent(int value)Sets first line indent
getLeftIndent()Left indent
setLeftIndent(int value)Sets left indent
getRightIndent()Right indent
setRightIndent(int value)Sets right indent
isList()Is list paragraph
setIsList(boolean value)Sets is paragraph list
isOrderedList()Is paragraph ordered list
setIsOrderedList(boolean value)Sets whether paragraph is ordered list
getUnorderedListChar()Character for unordered list in paragraph, if paragraph is an unordered list
setUnorderedListChar(char value)Sets character for unordered list in paragraph

ParagraphStyle()

public ParagraphStyle()

Constructor

getAlign()

public final byte getAlign()

Alignment type

Returns: byte - AlignmentType element

setAlignmentType(byte value)

public final void setAlignmentType(byte value)

Sets alignment type

Parameters:

ParameterTypeDescription
valuebytealignment type

getDefaultStyleIndex()

public final int getDefaultStyleIndex()

Index of default text style in Document.DefaultTextStyles array

Returns: int - int value

setDefaultStyleIndex(int value)

public final void setDefaultStyleIndex(int value)

Sets index for default text style in Document.DefaultTextStyles array

Parameters:

ParameterTypeDescription
valueintdefault style index

getLineSpacingValue()

public final double getLineSpacingValue()

Value of line spacing

Returns: double - double value

setLineSpacingValue(double value)

public final void setLineSpacingValue(double value)

Sets value of line spacing

Parameters:

ParameterTypeDescription
valuedoubleValue of line spacing

getLineSpacingType()

public final byte getLineSpacingType()

Type of line spacing

Returns: byte - LineSpacingType element

setLineSpacingType(byte value)

public final void setLineSpacingType(byte value)

Sets type of line spacing

Parameters:

ParameterTypeDescription
valuebyteValue of line spacing type

getTopIndent()

public final int getTopIndent()

Top indent value

Returns: int - int value

setTopIndent(int value)

public final void setTopIndent(int value)

Sets top indent

Parameters:

ParameterTypeDescription
valueintTop indent value

getBottomIndent()

public final int getBottomIndent()

Bottom indent

Returns: int - int value

setBottomIndent(int value)

public final void setBottomIndent(int value)

Sets bottom indent

Parameters:

ParameterTypeDescription
valueintBottom indent value

getFirstLineIndent()

public final int getFirstLineIndent()

First line indent

Returns: int - int value

setFirstLineIndent(int value)

public final void setFirstLineIndent(int value)

Sets first line indent

Parameters:

ParameterTypeDescription
valueintFirst line indent value

getLeftIndent()

public final int getLeftIndent()

Left indent

Returns: int - int value

setLeftIndent(int value)

public final void setLeftIndent(int value)

Sets left indent

Parameters:

ParameterTypeDescription
valueintLefdt indent value

getRightIndent()

public final int getRightIndent()

Right indent

Returns: int - int value

setRightIndent(int value)

public final void setRightIndent(int value)

Sets right indent

Parameters:

ParameterTypeDescription
valueintRight indent value

isList()

public final boolean isList()

Is list paragraph

Returns: boolean - boolean value

setIsList(boolean value)

public final void setIsList(boolean value)

Sets is paragraph list

Parameters:

ParameterTypeDescription
valuebooleanIs list value

isOrderedList()

public final boolean isOrderedList()

Is paragraph ordered list

Returns: boolean - boolean value

setIsOrderedList(boolean value)

public final void setIsOrderedList(boolean value)

Sets whether paragraph is ordered list

Parameters:

ParameterTypeDescription
valuebooleanIs ordered list value

getUnorderedListChar()

public final char getUnorderedListChar()

Character for unordered list in paragraph, if paragraph is an unordered list

Returns: char - char value

setUnorderedListChar(char value)

public final void setUnorderedListChar(char value)

Sets character for unordered list in paragraph

Parameters:

ParameterTypeDescription
valuecharUnordered list char value