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: 20.2
Syntax
public enum TxtLeadingSpacesOptions
Members
  Member nameValueDescription
ConvertToIndent0
Trim1
Preserve2
Examples
Shows how to load plain text as is.
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 + "Numbers and whitespaces.txt", loadOptions);
doc.Save(ArtifactsDir + "TxtLoadOptions.DetectNumberingWithWhitespaces.txt");
See Also