TextFormattingOptions
Inheritance: java.lang.Object, com.aspose.pdf.TextOptions com.aspose.pdf.TextFormattingOptions, com.aspose.pdf.TextOptions, com.aspose.pdf.TextFormattingOptions
public final class TextFormattingOptions extends TextOptions
Represents text formatting options
Constructors
| Constructor | Description |
|---|---|
| TextFormattingOptions | Initializes new instance of the {@code TextFormattingOptions} object with undefined word wrap mode. |
| TextFormattingOptions | Initializes new instance of the {@code TextFormattingOptions} object for the specified word wrap mode. |
Methods
| Method | Description |
|---|---|
| getFirstLineIndent | Gets or sets first line indent value. |
| getHyphenSymbol | Gets or sets hyphen symbol that is used in hyphenation process. To eliminate hyphen drawing (with wrapping procedure still in place) please set empty string string.Empty for HyphenSymbol. |
| getLineSpacing | Gets line spacing mode. Default value is LineSpacingMode.FontSize |
| getSubsequentLinesIndent | Gets or sets subsequent lines indent value. |
| getWrapMode | Gets word wrap mode. Default value is WordWrapMode.NoWrap |
| setFirstLineIndent | Gets or sets first line indent value. |
| setHyphenSymbol | Gets or sets hyphen symbol that is used in hyphenation process. To eliminate hyphen drawing (with wrapping procedure still in place) please set empty string string.Empty for HyphenSymbol. |
| setLineSpacing | Sets line spacing mode. Default value is LineSpacingMode.FontSize |
| setSubsequentLinesIndent | Gets or sets subsequent lines indent value. |
| setWrapMode | Sets word wrap mode. Default value is WordWrapMode.NoWrap |
TextFormattingOptions
public TextFormattingOptions()
Initializes new instance of the {@code TextFormattingOptions} object with undefined word wrap mode.
TextFormattingOptions
public TextFormattingOptions(int wrapMode)
Initializes new instance of the {@code TextFormattingOptions} object for the specified word wrap mode.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| wrapMode | Word wrap mode. @see WordWrapMode |
getFirstLineIndent
public final float getFirstLineIndent()
Gets or sets first line indent value.
Returns: float value
getHyphenSymbol
public final String getHyphenSymbol()
Gets or sets hyphen symbol that is used in hyphenation process.
To eliminate hyphen drawing (with wrapping procedure still in place) please set empty string string.Empty for HyphenSymbol.
Returns: String value
getLineSpacing
public int getLineSpacing()
Gets line spacing mode. Default value is LineSpacingMode.FontSize
Returns: int value @see LineSpacingMode
getSubsequentLinesIndent
public float getSubsequentLinesIndent()
Gets or sets subsequent lines indent value.
Returns: float value
getWrapMode
public int getWrapMode()
Gets word wrap mode. Default value is WordWrapMode.NoWrap
Returns: WordWrapMode value @see WordWrapMode
setFirstLineIndent
public final void setFirstLineIndent(float value)
Gets or sets first line indent value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float value |
setHyphenSymbol
Gets or sets hyphen symbol that is used in hyphenation process.
To eliminate hyphen drawing (with wrapping procedure still in place) please set empty string string.Empty for HyphenSymbol.
setLineSpacing
public void setLineSpacing(int value)
Sets line spacing mode. Default value is LineSpacingMode.FontSize
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value @see LineSpacingMode |
setSubsequentLinesIndent
public void setSubsequentLinesIndent(float value)
Gets or sets subsequent lines indent value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float value |
setWrapMode
public void setWrapMode(int value)
Sets word wrap mode. Default value is WordWrapMode.NoWrap
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | WordWrapMode value @see WordWrapMode |