Class TxtSaveOptionsBase
Namespace: Aspose.Words.Saving
Assembly: Aspose.Words.dll (25.3.0)
The base class for specifying additional options when saving a document into a text based formats.
To learn more, visit the Specify Save Options documentation article.
public abstract class TxtSaveOptionsBase : SaveOptions
Inheritance
object ← SaveOptions ← TxtSaveOptionsBase
Derived
MarkdownSaveOptions, TxtSaveOptions
Inherited Members
SaveOptions.CreateSaveOptions(SaveFormat), SaveOptions.CreateSaveOptions(string), SaveOptions.SaveFormat, SaveOptions.ExportGeneratorName, SaveOptions.TempFolder, SaveOptions.PrettyFormat, SaveOptions.UseAntiAliasing, SaveOptions.UseHighQualityRendering, SaveOptions.DmlRenderingMode, SaveOptions.DmlEffectsRenderingMode, SaveOptions.ImlRenderingMode, SaveOptions.DefaultTemplate, SaveOptions.UpdateFields, SaveOptions.UpdateLastSavedTimeProperty, SaveOptions.UpdateLastPrintedProperty, SaveOptions.UpdateCreatedTimeProperty, SaveOptions.MemoryOptimization, SaveOptions.UpdateAmbiguousTextFont, SaveOptions.Dml3DEffectsRenderingMode, SaveOptions.ProgressCallback, SaveOptions.AllowEmbeddingPostScriptFonts, SaveOptions.CustomTimeZoneInfo, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
TxtSaveOptionsBase()
protected TxtSaveOptionsBase()
Properties
Encoding
Specifies the encoding to use when exporting in text formats. Default value is Encoding.UTF8.
public Encoding Encoding { get; set; }
Property Value
ExportHeadersFootersMode
Specifies the way headers and footers are exported to the text formats. Default value is Aspose.Words.Saving.TxtExportHeadersFootersMode.PrimaryOnly.
public TxtExportHeadersFootersMode ExportHeadersFootersMode { get; set; }
Property Value
ForcePageBreaks
Allows to specify whether the page breaks should be preserved during export.
The default value is false
.
public bool ForcePageBreaks { get; set; }
Property Value
Remarks
The property affects only page breaks that are inserted explicitly into a document. It is not related to page breaks that MS Word automatically inserts at the end of each page.
ParagraphBreak
Specifies the string to use as a paragraph break when exporting in text formats.
public string ParagraphBreak { get; set; }
Property Value
Remarks
The default value is Aspose.Words.ControlChar.CrLf.