Class TxtLoadOptions
Namespace: Aspose.Words.Loading
Assembly: Aspose.Words.dll (25.3.0)
Allows to specify additional options when loading Aspose.Words.LoadFormat.Text document into a Aspose.Words.Document object.
To learn more, visit the Specify Load Options documentation article.
public class TxtLoadOptions : LoadOptions
Inheritance
object ← LoadOptions ← TxtLoadOptions
Inherited Members
LoadOptions.Equals(object), LoadOptions.LoadFormat, LoadOptions.Password, LoadOptions.BaseUri, LoadOptions.Encoding, LoadOptions.ResourceLoadingCallback, LoadOptions.WarningCallback, LoadOptions.ProgressCallback, LoadOptions.PreserveIncludePictureField, LoadOptions.ConvertShapeToOfficeMath, LoadOptions.FontSettings, LoadOptions.TempFolder, LoadOptions.ConvertMetafilesToPng, LoadOptions.MswVersion, LoadOptions.UpdateDirtyFields, LoadOptions.IgnoreOleData, LoadOptions.UseSystemLcid, LoadOptions.LanguagePreferences, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
TxtLoadOptions()
Initializes a new instance of this class with default values.
public TxtLoadOptions()
Properties
AutoNumberingDetection
Gets or sets a boolean value indicating either automatic numbering detection
will be performed while loading a document.
The default value is true
.
public bool AutoNumberingDetection { get; set; }
Property Value
DetectHyperlinks
Specifies either to detect hyperlinks in text.
The default value is false
.
public bool DetectHyperlinks { get; set; }
Property Value
DetectNumberingWithWhitespaces
Allows to specify how numbered list items are recognized when document is imported from plain text format.
The default value is true
.
public bool DetectNumberingWithWhitespaces { get; set; }
Property Value
Remarks
If this option is set to false
, lists recognition algorithm detects list paragraphs, when list numbers ends with
either dot, right bracket or bullet symbols (such as "•", "*", "-" or "o").
If this option is set to true
, whitespaces are also used as list number delimiters:
list recognition algorithm for Arabic style numbering (1., 1.1.2.) uses both whitespaces and dot (".") symbols.
DocumentDirection
Gets or sets a document direction. The default value is Aspose.Words.Loading.DocumentDirection.LeftToRight.
public DocumentDirection DocumentDirection { get; set; }
Property Value
LeadingSpacesOptions
Gets or sets preferred option of a leading space handling. Default value is Aspose.Words.Loading.TxtLeadingSpacesOptions.ConvertToIndent.
public TxtLeadingSpacesOptions LeadingSpacesOptions { get; set; }
Property Value
TrailingSpacesOptions
Gets or sets preferred option of a trailing space handling. Default value is Aspose.Words.Loading.TxtTrailingSpacesOptions.Trim.
public TxtTrailingSpacesOptions TrailingSpacesOptions { get; set; }