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

ConstructorDescription
TextFormattingOptionsInitializes new instance of the {@code TextFormattingOptions} object with undefined word wrap mode.
TextFormattingOptionsInitializes new instance of the {@code TextFormattingOptions} object for the specified word wrap mode.

Methods

MethodDescription
getFirstLineIndentGets 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.
getLineSpacingGets line spacing mode. Default value is LineSpacingMode.FontSize
getSubsequentLinesIndentGets or sets subsequent lines indent value.
getWrapModeGets word wrap mode. Default value is WordWrapMode.NoWrap
setFirstLineIndentGets 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.
setLineSpacingSets line spacing mode. Default value is LineSpacingMode.FontSize
setSubsequentLinesIndentGets or sets subsequent lines indent value.
setWrapModeSets 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:

ParameterTypeDescription
wrapModeWord 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:

ParameterTypeDescription
valuefloat 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:

ParameterTypeDescription
valueint value @see LineSpacingMode

setSubsequentLinesIndent

public void setSubsequentLinesIndent(float value)

Gets or sets subsequent lines indent value.

Parameters:

ParameterTypeDescription
valuefloat value

setWrapMode

public void setWrapMode(int value)

Sets word wrap mode. Default value is WordWrapMode.NoWrap

Parameters:

ParameterTypeDescription
valueWordWrapMode value @see WordWrapMode