com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class TextFormattingOptions



  • public final class TextFormattingOptions
    extends TextOptions

    Represents text formatting options

    • Constructor Detail

      • TextFormattingOptions

        public TextFormattingOptions(int wrapMode)

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

        Parameters:
        wrapMode - Word wrap mode.
        See Also:
        TextFormattingOptions.WordWrapMode
      • TextFormattingOptions

        public TextFormattingOptions()

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

    • Method Detail

      • getWrapMode

        public int getWrapMode()

        Gets word wrap mode. Default value is WordWrapMode.NoWrap

        Returns:
        WordWrapMode value
        See Also:
        TextFormattingOptions.WordWrapMode
      • setWrapMode

        public void setWrapMode(int value)

        Sets word wrap mode. Default value is WordWrapMode.NoWrap

        Parameters:
        value - WordWrapMode value
        See Also:
        TextFormattingOptions.WordWrapMode
      • setLineSpacing

        public void setLineSpacing(int value)

        Sets line spacing mode. Default value is LineSpacingMode.FontSize

        Parameters:
        value - int value
        See Also:
        TextFormattingOptions.LineSpacingMode
      • getSubsequentLinesIndent

        public float getSubsequentLinesIndent()

        Gets or sets subsequent lines indent value.

        Returns:
        float value
      • setSubsequentLinesIndent

        public void setSubsequentLinesIndent(float value)

        Gets or sets subsequent lines indent value.

        Parameters:
        value - float value
      • getFirstLineIndent

        public final float getFirstLineIndent()

        Gets or sets first line indent value.

        Returns:
        float value
      • setFirstLineIndent

        public final void setFirstLineIndent(float value)

        Gets or sets first line indent value.

        Parameters:
        value - float value