Click or drag to resize

TxtTrailingSpacesOptions Enumeration

Specifies available options for trailing spaces handling during import from Text file.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.2
Syntax
public enum TxtTrailingSpacesOptions
Members
  Member nameValueDescription
Trim0
Preserve1
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