TxtSaveOptionsBasePreserveTableLayout Property

Specifies whether the program should attempt to preserve layout of tables when saving in the plain text format. The default value is false.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool PreserveTableLayout { get; set; }

Property Value

Type: Boolean
Examples
Shows how to change the appearance of tables and lists during conversion to a txt document output.
// Open a document with a table
Document doc = new Document(MyDir + "Rendering.docx");

// Due to the nature of text documents, table grids and text wrapping will be lost during conversion
// from a file type that supports tables
// We can preserve some of the table layout in the appearance of our content with the PreserveTableLayout flag
// The SimplifyListLabels flag will convert some list symbols
// into ASCII characters such as *, o, +, > etc, depending on list level
TxtSaveOptions txtSaveOptions = new TxtSaveOptions { SimplifyListLabels = true, PreserveTableLayout = true};

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