Click or drag to resize
TxtLeadingSpacesOptions Enumeration
Specifies available options for leading space handling during import from Text file.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
Syntax
public enum TxtLeadingSpacesOptions
Members
  Member nameValueDescription
ConvertToIndent0
Trim1
Preserve2
Examples
Shows how to load plain text as is.
[C#]

TxtLoadOptions loadOptions = new TxtLoadOptions
{
    // If it sets to true Aspose.Words insert additional periods after numbers in the content.
    DetectNumberingWithWhitespaces = false, 
    TrailingSpacesOptions = TxtTrailingSpacesOptions.Preserve,
    LeadingSpacesOptions = TxtLeadingSpacesOptions.Preserve
};

Document doc = new Document(MyDir + "TxtLoadOptions.DetectNumberingWithWhitespaces.txt", loadOptions);
doc.Save(ArtifactsDir + "TxtLoadOptions.DetectNumberingWithWhitespaces.txt");
See Also