TxtListIndentation Class

Specifies how list levels are indented when document is exporting to Text format.
Inheritance Hierarchy
SystemObject
  Aspose.Words.SavingTxtListIndentation

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public class TxtListIndentation

The TxtListIndentation type exposes the following members.

Constructors
  NameDescription
Public methodTxtListIndentation
Initializes a new instance of the TxtListIndentation class
Properties
  NameDescription
Public propertyCode exampleCharacter
Gets or sets which character to use for indenting list levels. The default value is '\0', that means there is no indentation.
Public propertyCode exampleCount
Gets or sets how many Character to use as indentation per one list level. The default value is 0, that means no indentation.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples
Shows how list levels are displayed when the document is converting to plain text format.
Document doc = new Document(MyDir + "List indentation.docx");

TxtSaveOptions txtSaveOptions = new TxtSaveOptions();
txtSaveOptions.ListIndentation.Count = 3;
txtSaveOptions.ListIndentation.Character = ' ';
txtSaveOptions.PreserveTableLayout = true;

doc.Save(ArtifactsDir + "TxtSaveOptions.TxtListIndentation.txt", txtSaveOptions);
See Also