TxtLoadOptionsLeadingSpacesOptions Property

Gets or sets preferred option of a leading space handling. Default value is ConvertToIndent.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public TxtLeadingSpacesOptions LeadingSpacesOptions { get; set; }

Property Value

Type: TxtLeadingSpacesOptions
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