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
    • 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