TxtLoadOptionsLeadingSpacesOptions Property |
Namespace: Aspose.Words
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");