public final class TextFormattingOptions extends TextOptions
Represents text formatting options
Modifier and Type | Class and Description |
---|---|
static class |
TextFormattingOptions.LineSpacingMode
Defines line spacing specifics
|
static class |
TextFormattingOptions.WordWrapMode
Defines word wrapping strategies
|
Constructor and Description |
---|
TextFormattingOptions()
Initializes new instance of the
TextFormattingOptions object with undefined word wrap
mode. |
TextFormattingOptions(int wrapMode)
Initializes new instance of the
TextFormattingOptions object for the specified word
wrap mode. |
Modifier and Type | Method and Description |
---|---|
float |
getFirstLineIndent()
Gets or sets first line indent value.
|
int |
getLineSpacing()
Gets line spacing mode.
|
float |
getSubsequentLinesIndent()
Gets or sets subsequent lines indent value.
|
int |
getWrapMode()
Gets word wrap mode.
|
void |
setFirstLineIndent(float value)
Gets or sets first line indent value.
|
void |
setLineSpacing(int value)
Sets line spacing mode.
|
void |
setSubsequentLinesIndent(float value)
Gets or sets subsequent lines indent value.
|
void |
setWrapMode(int value)
Sets word wrap mode.
|
public TextFormattingOptions(int wrapMode)
Initializes new instance of the TextFormattingOptions
object for the specified word
wrap mode.
wrapMode
- Word wrap mode.TextFormattingOptions.WordWrapMode
public TextFormattingOptions()
Initializes new instance of the TextFormattingOptions
object with undefined word wrap
mode.
public int getWrapMode()
Gets word wrap mode. Default value is WordWrapMode.NoWrap
TextFormattingOptions.WordWrapMode
public void setWrapMode(int value)
Sets word wrap mode. Default value is WordWrapMode.NoWrap
value
- WordWrapMode valueTextFormattingOptions.WordWrapMode
public int getLineSpacing()
Gets line spacing mode. Default value is LineSpacingMode.FontSize
TextFormattingOptions.LineSpacingMode
public void setLineSpacing(int value)
Sets line spacing mode. Default value is LineSpacingMode.FontSize
value
- int valueTextFormattingOptions.LineSpacingMode
public float getSubsequentLinesIndent()
Gets or sets subsequent lines indent value.
public void setSubsequentLinesIndent(float value)
Gets or sets subsequent lines indent value.
value
- float valuepublic final float getFirstLineIndent()
Gets or sets first line indent value.
public final void setFirstLineIndent(float value)
Gets or sets first line indent value.
value
- float value