TextFormattingOptions

Inheritance: java.lang.Object, com.aspose.pdf.TextOptions

public final class TextFormattingOptions extends TextOptions

Represents text formatting options

Constructors

ConstructorDescription
TextFormattingOptions(int wrapMode)Initializes new instance of the TextFormattingOptions object for the specified word wrap mode.
TextFormattingOptions()Initializes new instance of the TextFormattingOptions object with undefined word wrap mode.

Methods

MethodDescription
getWrapMode()Gets word wrap mode.
setWrapMode(int value)Sets word wrap mode.
getLineSpacing()Gets line spacing mode.
setLineSpacing(int value)Sets line spacing mode.
getHyphenSymbol()Gets or sets hyphen symbol that is used in hyphenation process.
setHyphenSymbol(String value)Gets or sets hyphen symbol that is used in hyphenation process.
getSubsequentLinesIndent()Gets or sets subsequent lines indent value.
setSubsequentLinesIndent(float value)Gets or sets subsequent lines indent value.
getFirstLineIndent()Gets or sets first line indent value.
setFirstLineIndent(float value)Gets or sets first line indent value.

TextFormattingOptions(int wrapMode)

public TextFormattingOptions(int wrapMode)

Initializes new instance of the TextFormattingOptions object for the specified word wrap mode.

Parameters:

ParameterTypeDescription
wrapModeintWord wrap mode.

TextFormattingOptions()

public TextFormattingOptions()

Initializes new instance of the TextFormattingOptions object with undefined word wrap mode.

getWrapMode()

public int getWrapMode()

Gets word wrap mode. Default value is WordWrapMode.NoWrap

Returns: int - WordWrapMode value

setWrapMode(int value)

public void setWrapMode(int value)

Sets word wrap mode. Default value is WordWrapMode.NoWrap

Parameters:

ParameterTypeDescription
valueintWordWrapMode value

getLineSpacing()

public int getLineSpacing()

Gets line spacing mode. Default value is LineSpacingMode.FontSize

Returns: int - int value

setLineSpacing(int value)

public void setLineSpacing(int value)

Sets line spacing mode. Default value is LineSpacingMode.FontSize

Parameters:

ParameterTypeDescription
valueintint 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: java.lang.String - String value

setHyphenSymbol(String value)

public final void setHyphenSymbol(String value)

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.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringvalue String value

getSubsequentLinesIndent()

public float getSubsequentLinesIndent()

Gets or sets subsequent lines indent value.

Returns: float - float value

setSubsequentLinesIndent(float value)

public void setSubsequentLinesIndent(float value)

Gets or sets subsequent lines indent value.

Parameters:

ParameterTypeDescription
valuefloatfloat value

getFirstLineIndent()

public final float getFirstLineIndent()

Gets or sets first line indent value.

Returns: float - float value

setFirstLineIndent(float value)

public final void setFirstLineIndent(float value)

Gets or sets first line indent value.

Parameters:

ParameterTypeDescription
valuefloatfloat value