com.aspose.words
Class TxtListIndentation

java.lang.Object
    extended by com.aspose.words.TxtListIndentation

public class TxtListIndentation 
extends java.lang.Object

Specifies how list levels are indented when document is exporting to SaveFormat.TEXT format.

Example:

Shows how list levels are displayed when the document is converting to plain text format
Document doc = new Document(getMyDir() + "TxtSaveOptions.TxtListIndentation.docx");

TxtSaveOptions txtSaveOptions = new TxtSaveOptions();
txtSaveOptions.getListIndentation().setCount(3);
txtSaveOptions.getListIndentation().setCharacter(' ');
txtSaveOptions.setPreserveTableLayout(true);

doc.save(getArtifactsDir() + "TxtSaveOptions.TxtListIndentation.txt", txtSaveOptions);

Constructor Summary
TxtListIndentation()
          
 
Property Getters/Setters Summary
chargetCharacter()
voidsetCharacter(char value)
           Gets or sets which character to use for indenting list levels. The default value is '\0', that means there is no indentation.
intgetCount()
voidsetCount(int value)
           Gets or sets how many Character to use as indentation per one list level. The default value is 0, that means no indentation.
 

Constructor Detail

TxtListIndentation

public TxtListIndentation()

Property Getters/Setters Detail

getCharacter/setCharacter

public char getCharacter() / public void setCharacter(char value)
Gets or sets which character to use for indenting list levels. The default value is '\0', that means there is no indentation.

Example:

Shows how list levels are displayed when the document is converting to plain text format
Document doc = new Document(getMyDir() + "TxtSaveOptions.TxtListIndentation.docx");

TxtSaveOptions txtSaveOptions = new TxtSaveOptions();
txtSaveOptions.getListIndentation().setCount(3);
txtSaveOptions.getListIndentation().setCharacter(' ');
txtSaveOptions.setPreserveTableLayout(true);

doc.save(getArtifactsDir() + "TxtSaveOptions.TxtListIndentation.txt", txtSaveOptions);

getCount/setCount

public int getCount() / public void setCount(int value)
Gets or sets how many Character to use as indentation per one list level. The default value is 0, that means no indentation.

Example:

Shows how list levels are displayed when the document is converting to plain text format
Document doc = new Document(getMyDir() + "TxtSaveOptions.TxtListIndentation.docx");

TxtSaveOptions txtSaveOptions = new TxtSaveOptions();
txtSaveOptions.getListIndentation().setCount(3);
txtSaveOptions.getListIndentation().setCharacter(' ');
txtSaveOptions.setPreserveTableLayout(true);

doc.save(getArtifactsDir() + "TxtSaveOptions.TxtListIndentation.txt", txtSaveOptions);

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.