com.aspose.words
Class TxtLeadingSpacesOptions

java.lang.Object
    extended by com.aspose.words.TxtLeadingSpacesOptions

public class TxtLeadingSpacesOptions 
extends java.lang.Object

Utility class containing constants. Specifies available options for leading space handling during import from LoadFormat.TEXT file.

Example:

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.
loadOptions.setDetectNumberingWithWhitespaces(false);
loadOptions.setTrailingSpacesOptions(TxtTrailingSpacesOptions.PRESERVE);
loadOptions.setLeadingSpacesOptions(TxtLeadingSpacesOptions.PRESERVE);

Document doc = new Document(getMyDir() + "TxtLoadOptions.DetectNumberingWithWhitespaces.txt", loadOptions);
doc.save(getArtifactsDir() + "TxtLoadOptions.DetectNumberingWithWhitespaces.txt");

Field Summary
static final intCONVERT_TO_INDENT = 0
          
static final intTRIM = 1
          
static final intPRESERVE = 2
          
 

Field Detail

CONVERT_TO_INDENT = 0

public static final int CONVERT_TO_INDENT

TRIM = 1

public static final int TRIM

PRESERVE = 2

public static final int PRESERVE

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.