TxtSaveOptions Class |
Namespace: Aspose.Words.Saving
The TxtSaveOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | TxtSaveOptions | Initializes a new instance of the TxtSaveOptions class |
Name | Description | |
---|---|---|
![]() ![]() | AddBidiMarks | Specifies whether to add bi-directional marks before each BiDi run when exporting in plain text format. The default value is false. |
![]() ![]() | DefaultTemplate |
Gets or sets path to default template (including filename).
Default value for this property is empty string (Empty).
(Inherited from SaveOptions.) |
![]() ![]() | DmlEffectsRenderingMode |
Gets or sets a value determining how DrawingML effects are rendered.
(Inherited from SaveOptions.) |
![]() ![]() | DmlRenderingMode |
Gets or sets a value determining how DrawingML shapes are rendered.
(Inherited from SaveOptions.) |
![]() ![]() | Encoding |
Specifies the encoding to use when exporting in text formats.
Default value is Encoding.UTF8.
(Inherited from TxtSaveOptionsBase.) |
![]() ![]() | ExportHeadersFootersMode |
Specifies the way headers and footers are exported to the text formats.
Default value is PrimaryOnly.
(Inherited from TxtSaveOptionsBase.) |
![]() ![]() | ForcePageBreaks | Allows to specify whether the page breaks should be preserved during export. The default value is false. |
![]() ![]() | ListIndentation |
Gets a ListIndentation object that specifies how many and which character to use for indentation of list levels.
By default it is zero count of character '\0', that means no indentation.
|
![]() ![]() | MemoryOptimization |
Gets or sets value determining if memory optimization should be performed before saving the document.
Default value for this property is false.
(Inherited from SaveOptions.) |
![]() ![]() | ParagraphBreak |
Specifies the string to use as a paragraph break when exporting in text formats.
(Inherited from TxtSaveOptionsBase.) |
![]() ![]() | PreserveTableLayout |
Specifies whether the program should attempt to preserve layout of tables when saving in the plain text format.
The default value is false.
(Inherited from TxtSaveOptionsBase.) |
![]() ![]() | PrettyFormat |
When true, pretty formats output where applicable.
Default value is false.
(Inherited from SaveOptions.) |
![]() ![]() | SaveFormat |
Specifies the format in which the document will be saved if this save options object is used.
Can only be Text.
(Overrides SaveOptionsSaveFormat.) |
![]() ![]() | SimplifyListLabels | Specifies whether the program should simplify list labels in case of complex label formatting not being adequately represented by plain text. If set to true, numbered list labels are written in simple numeric format and itemized list labels as simple ASCII characters. The default value is false. |
![]() ![]() | TempFolder |
Specifies the folder for temporary files used when saving to a DOC or DOCX file.
By default this property is null and no temporary files are used.
(Inherited from SaveOptions.) |
![]() ![]() | UpdateFields |
Gets or sets a value determining if fields of certain types should be updated before saving the document to a fixed page format.
Default value for this property is true.
(Inherited from SaveOptions.) |
![]() | UpdateLastPrintedProperty |
Gets or sets a value determining whether the LastPrinted property is updated before saving.
(Inherited from SaveOptions.) |
![]() ![]() | UpdateLastSavedTimeProperty |
Gets or sets a value determining whether the LastSavedTime property is updated before saving.
(Inherited from SaveOptions.) |
![]() ![]() | UpdateSdtContent |
Gets or sets value determining whether content of StructuredDocumentTag is updated before saving.
(Inherited from SaveOptions.) |
![]() ![]() | UseAntiAliasing |
Gets or sets a value determining whether or not to use anti-aliasing for rendering.
(Inherited from SaveOptions.) |
![]() ![]() | UseHighQualityRendering |
Gets or sets a value determining whether or not to use high quality (i.e. slow) rendering algorithms.
(Inherited from SaveOptions.) |
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
// Create a new document and add some paragraphs Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); builder.Writeln("Paragraph 1."); builder.Writeln("Paragraph 2."); builder.Write("Paragraph 3."); // When saved to plain text, the paragraphs we created can be separated by a custom string TxtSaveOptions txtSaveOptions = new TxtSaveOptions { SaveFormat = SaveFormat.Text, ParagraphBreak = " End of paragraph.\n\n\t" }; doc.Save(ArtifactsDir + "TxtSaveOptions.ParagraphBreak.txt", txtSaveOptions);