com.groupdocs.editor.options

Class TextEditOptions

  • All Implemented Interfaces:
    IEditOptions


    public class TextEditOptions
    extends Object
    implements IEditOptions

    Allows to specify custom options for loading plain text (TXT) documents

    • Constructor Summary

      Constructors 
      Constructor and Description
      TextEditOptions() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getDirection()
      Allows to specify the direction of text flow in the input plain text document.
      boolean getEnablePagination()
      Allows to enable or disable pagination in the resultant HTML document.
      Charset getEncoding()
      Character encoding of the text document, which will be applied for its opening
      com.aspose.ms.System.Text.Encoding getEncodingInternal() 
      int getLeadingSpaces()
      Gets or sets preferred option of a leading space handling.
      boolean getRecognizeLists()
      Allows to specify how numbered list items are recognized when document is imported from plain text format.
      int getTrailingSpaces()
      Gets or sets preferred option of a trailing space handling.
      void setDirection(int value)
      Allows to specify the direction of text flow in the input plain text document.
      void setEnablePagination(boolean value)
      Allows to enable or disable pagination in the resultant HTML document.
      void setEncoding(Charset value)
      Character encoding of the text document, which will be applied for its opening
      void setEncodingInternal(com.aspose.ms.System.Text.Encoding value) 
      void setLeadingSpaces(int value)
      Gets or sets preferred option of a leading space handling.
      void setRecognizeLists(boolean value)
      Allows to specify how numbered list items are recognized when document is imported from plain text format.
      void setTrailingSpaces(int value)
      Gets or sets preferred option of a trailing space handling.
    • Constructor Detail

      • TextEditOptions

        public TextEditOptions()
    • Method Detail

      • getDirection

        public final int getDirection()

        Allows to specify the direction of text flow in the input plain text document. By default is Left-to-Right.

      • getEnablePagination

        public final boolean getEnablePagination()

        Allows to enable or disable pagination in the resultant HTML document. By default is disabled (false).

      • getEncoding

        public final Charset getEncoding()

        Character encoding of the text document, which will be applied for its opening

      • getEncodingInternal

        public com.aspose.ms.System.Text.Encoding getEncodingInternal()
      • getLeadingSpaces

        public final int getLeadingSpaces()

        Gets or sets preferred option of a leading space handling. By default converts leading spaces to the left indent.

      • getRecognizeLists

        public final boolean getRecognizeLists()

        Allows to specify how numbered list items are recognized when document is imported from plain text format. The default value is true.


        If this option is set to false, lists recognition algorithm detects list paragraphs, when list numbers ends with either dot, right bracket or bullet symbols (such as "•", "*", "-" or "o"). If this option is set to true, whitespaces are also used as list number delimiters: list recognition algorithm for Arabic style numbering (1., 1.1.2.) uses both whitespaces and dot (".") symbols.
      • getTrailingSpaces

        public final int getTrailingSpaces()

        Gets or sets preferred option of a trailing space handling. By default truncates all trailing spaces.

      • setDirection

        public final void setDirection(int value)

        Allows to specify the direction of text flow in the input plain text document. By default is Left-to-Right.

      • setEnablePagination

        public final void setEnablePagination(boolean value)

        Allows to enable or disable pagination in the resultant HTML document. By default is disabled (false).

      • setEncoding

        public final void setEncoding(Charset value)

        Character encoding of the text document, which will be applied for its opening

      • setEncodingInternal

        public void setEncodingInternal(com.aspose.ms.System.Text.Encoding value)
      • setLeadingSpaces

        public final void setLeadingSpaces(int value)

        Gets or sets preferred option of a leading space handling. By default converts leading spaces to the left indent.

      • setRecognizeLists

        public final void setRecognizeLists(boolean value)

        Allows to specify how numbered list items are recognized when document is imported from plain text format. The default value is true.


        If this option is set to false, lists recognition algorithm detects list paragraphs, when list numbers ends with either dot, right bracket or bullet symbols (such as "•", "*", "-" or "o"). If this option is set to true, whitespaces are also used as list number delimiters: list recognition algorithm for Arabic style numbering (1., 1.1.2.) uses both whitespaces and dot (".") symbols.
      • setTrailingSpaces

        public final void setTrailingSpaces(int value)

        Gets or sets preferred option of a trailing space handling. By default truncates all trailing spaces.