ParagraphStyle
Inheritance: java.lang.Object, com.aspose.pub.BaseStyle
public class ParagraphStyle extends BaseStyle
This class describes style of PUB paragraph
Constructors
Constructor | Description |
---|---|
ParagraphStyle() | Constructor |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
value | byte | alignment 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:
Parameter | Type | Description |
---|---|---|
value | int | default 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:
Parameter | Type | Description |
---|---|---|
value | double | Value 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:
Parameter | Type | Description |
---|---|---|
value | byte | Value 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:
Parameter | Type | Description |
---|---|---|
value | int | Top 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:
Parameter | Type | Description |
---|---|---|
value | int | Bottom 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:
Parameter | Type | Description |
---|---|---|
value | int | First 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:
Parameter | Type | Description |
---|---|---|
value | int | Lefdt 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:
Parameter | Type | Description |
---|---|---|
value | int | Right 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:
Parameter | Type | Description |
---|---|---|
value | boolean | Is 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:
Parameter | Type | Description |
---|---|---|
value | boolean | Is 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:
Parameter | Type | Description |
---|---|---|
value | char | Unordered list char value |