public final class TxtLoadOptions extends LoadOptions implements Serializable
Options for loading Txt documents.
Constructor and Description |
---|
TxtLoadOptions()
Initializes new instance of
TxtLoadOptions class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getDetectNumberingWithWhitespaces()
Allows to specify how numbered list items are recognized when plain text document is converted.
|
Charset |
getEncoding()
Gets or sets the encoding that will be used when loading Txt document.
|
com.aspose.ms.System.Text.Encoding |
getEncodingInternal() |
WordProcessingFileType |
getFormat()
Input document file type
|
TxtLeadingSpacesOptions |
getLeadingSpacesOptions()
Gets or sets preferred option of a leading space handling.
|
TxtTrailingSpacesOptions |
getTrailingSpacesOptions()
Gets or sets preferred option of a trailing space handling.
|
void |
setDetectNumberingWithWhitespaces(boolean value)
Allows to specify how numbered list items are recognized when plain text document is converted.
|
void |
setEncoding(Charset value)
Gets or sets the encoding that will be used when loading Txt document.
|
void |
setLeadingSpacesOptions(TxtLeadingSpacesOptions value)
Gets or sets preferred option of a leading space handling.
|
void |
setTrailingSpacesOptions(TxtTrailingSpacesOptions value)
Gets or sets preferred option of a trailing space handling.
|
setFormat
equals, equals, hashCode, op_Equality, op_Inequality
public TxtLoadOptions()
Initializes new instance of TxtLoadOptions
class.
public WordProcessingFileType getFormat()
LoadOptions
Input document file type
getFormat
in class LoadOptions
public final boolean getDetectNumberingWithWhitespaces()
Allows to specify how numbered list items are recognized when plain text document is converted. The default value is 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.
public final void setDetectNumberingWithWhitespaces(boolean value)
Allows to specify how numbered list items are recognized when plain text document is converted. The default value is 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.
public final TxtTrailingSpacesOptions getTrailingSpacesOptions()
Gets or sets preferred option of a trailing space handling.
Default value is TxtTrailingSpacesOptions.Trim
.
public final void setTrailingSpacesOptions(TxtTrailingSpacesOptions value)
Gets or sets preferred option of a trailing space handling.
Default value is TxtTrailingSpacesOptions.Trim
.
public final TxtLeadingSpacesOptions getLeadingSpacesOptions()
Gets or sets preferred option of a leading space handling.
Default value is TxtLeadingSpacesOptions.ConvertToIndent
.
public final void setLeadingSpacesOptions(TxtLeadingSpacesOptions value)
Gets or sets preferred option of a leading space handling.
Default value is TxtLeadingSpacesOptions.ConvertToIndent
.
public final Charset getEncoding()
Gets or sets the encoding that will be used when loading Txt document. Can be null. Default is null.
public com.aspose.ms.System.Text.Encoding getEncodingInternal()
public final void setEncoding(Charset value)
Gets or sets the encoding that will be used when loading Txt document. Can be null. Default is null.