java.lang.Object
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() + "List indentation.docx");
TxtSaveOptions txtSaveOptions = new TxtSaveOptions();
txtSaveOptions.getListIndentation().setCount(3);
txtSaveOptions.getListIndentation().setCharacter(' ');
txtSaveOptions.setPreserveTableLayout(true);
doc.save(getArtifactsDir() + "TxtSaveOptions.TxtListIndentation.txt", txtSaveOptions);
Property Getters/Setters Summary |
char | getCharacter() | |
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.
|
int | getCount() | |
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.
|
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() + "List indentation.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() + "List indentation.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.