public class TxtLoadOptions extends LoadOptions
LoadFormat.TEXT document into a Document object.
To learn more, visit the Specify Load Options documentation article.
| Constructor and Description |
|---|
TxtLoadOptions()
Initializes a new instance of this class with default values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAutoNumberingDetection()
Gets a boolean value indicating either automatic numbering detection will be performed while loading a document.
|
boolean |
getDetectNumberingWithWhitespaces()
Allows to specify how numbered list items are recognized when document is imported from plain text format.
|
int |
getDocumentDirection()
Gets a document direction.
|
int |
getLeadingSpacesOptions()
Gets preferred option of a leading space handling.
|
int |
getTrailingSpacesOptions()
Gets preferred option of a trailing space handling.
|
void |
setAutoNumberingDetection(boolean value)
Sets a boolean value indicating either automatic numbering detection will be performed while loading a document.
|
void |
setDetectNumberingWithWhitespaces(boolean value)
Allows to specify how numbered list items are recognized when document is imported from plain text format.
|
void |
setDocumentDirection(int value)
Sets a document direction.
|
void |
setLeadingSpacesOptions(int value)
Sets preferred option of a leading space handling.
|
void |
setTrailingSpacesOptions(int value)
Sets preferred option of a trailing space handling.
|
getBaseUri, getConvertMetafilesToPng, getConvertShapeToOfficeMath, getEncoding, getFontSettings, getLanguagePreferences, getLoadFormat, getMswVersion, getPassword, getPreserveIncludePictureField, getProgressCallback, getResourceLoadingCallback, getTempFolder, getUpdateDirtyFields, getWarningCallback, setBaseUri, setConvertMetafilesToPng, setConvertShapeToOfficeMath, setEncoding, setFontSettings, setLoadFormat, setMswVersion, setPassword, setPreserveIncludePictureField, setProgressCallback, setResourceLoadingCallback, setTempFolder, setUpdateDirtyFields, setWarningCallbackpublic TxtLoadOptions()
public boolean getAutoNumberingDetection()
true.public void setAutoNumberingDetection(boolean value)
true.value - A boolean value indicating either automatic numbering detection will be performed while loading a document.public boolean getDetectNumberingWithWhitespaces()
true.
If this option is set to false, lists recognition algorithm detects list paragraphs, when list numbers ends with either dot, right bracket or bullet symbols (such as "•", "*", "-" or "o").
If this option is set to true, whitespaces are also used as list number delimiters: list recognition algorithm for Arabic style numbering (1., 1.1.2.) uses both whitespaces and dot (".") symbols.
boolean value.public void setDetectNumberingWithWhitespaces(boolean value)
true.
If this option is set to false, lists recognition algorithm detects list paragraphs, when list numbers ends with either dot, right bracket or bullet symbols (such as "•", "*", "-" or "o").
If this option is set to true, whitespaces are also used as list number delimiters: list recognition algorithm for Arabic style numbering (1., 1.1.2.) uses both whitespaces and dot (".") symbols.
value - The corresponding boolean value.public int getTrailingSpacesOptions()
TxtTrailingSpacesOptions.TRIM.TxtTrailingSpacesOptions constants.public void setTrailingSpacesOptions(int value)
TxtTrailingSpacesOptions.TRIM.value - Preferred option of a trailing space handling. The value must be one of TxtTrailingSpacesOptions constants.public int getLeadingSpacesOptions()
TxtLeadingSpacesOptions.CONVERT_TO_INDENT.TxtLeadingSpacesOptions constants.public void setLeadingSpacesOptions(int value)
TxtLeadingSpacesOptions.CONVERT_TO_INDENT.value - Preferred option of a leading space handling. The value must be one of TxtLeadingSpacesOptions constants.public int getDocumentDirection()
DocumentDirection.LEFT_TO_RIGHT.DocumentDirection constants.public void setDocumentDirection(int value)
DocumentDirection.LEFT_TO_RIGHT.value - A document direction. The value must be one of DocumentDirection constants.