TxtLoadOptions

TxtLoadOptions

Overview

TxtLoadOptions is a class in Aspose.Words FOSS for .NET. Inherits from: LoadOptions.

Allows to specify additional options when loading Text document into a Document object.

This class provides 3 methods for working with TxtLoadOptions objects in .NET programs. Available methods include: Equals, LoadOptions, TxtLoadOptions. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: AutoNumberingDetection, BaseUri, ConvertMetafilesToPng, ConvertShapeToOfficeMath, DetectHyperlinks, DetectNumberingWithWhitespaces, and 18 more.

Properties

NameTypeAccessDescription
AutoNumberingDetectionboolRead/WriteGets or sets a boolean value indicating either automatic numbering detection will be performed while loading a document.
DetectNumberingWithWhitespacesboolRead/WriteAllows to specify how numbered list items are recognized when document is imported from plain text format.
TrailingSpacesOptionsTxtTrailingSpacesOptionsRead/WriteGets or sets preferred option of a trailing space handling.
LeadingSpacesOptionsTxtLeadingSpacesOptionsRead/WriteGets or sets preferred option of a leading space handling.
DocumentDirectionDocumentDirectionRead/WriteGets or sets a document direction.
DetectHyperlinksboolRead/WriteSpecifies either to detect hyperlinks in text.
LoadFormatLoadFormatRead/WriteSpecifies the format of the document to be loaded.
PasswordstringRead/WriteGets or sets the password for opening an encrypted document.
BaseUristringRead/WriteGets or sets the string that will be used to resolve relative URIs found in the document into absolute URIs when required.
EncodingEncodingRead/WriteGets or sets the encoding that will be used to load an HTML, TXT, or CHM document if the encoding is not specified inside the document.
ResourceLoadingCallbackIResourceLoadingCallbackRead/WriteAllows to control how external resources (images, style sheets) are loaded when a document is imported from HTML, MHTML.
WarningCallbackIWarningCallbackRead/WriteCalled during a load operation, when an issue is detected that might result in data or formatting fidelity loss.
ProgressCallbackIDocumentLoadingCallbackRead/WriteCalled during loading a document and accepts data about loading progress.
PreserveIncludePictureFieldboolRead/WriteGets or sets whether to preserve the INCLUDEPICTURE field when reading Microsoft Word formats.
ConvertShapeToOfficeMathboolRead/WriteGets or sets whether to convert shapes with EquationXML to Office Math objects.
FontSettingsFontSettingsRead/WriteAllows to specify document font settings.
TempFolderstringRead/WriteAllows to use temporary files when reading document.
ConvertMetafilesToPngboolRead/WriteGets or sets whether to convert metafile(Wmf or Emf) images to Png image format.
MswVersionMsWordVersionRead/WriteAllows to specify that the document loading process should match a specific MS Word version.
UpdateDirtyFieldsboolRead/WriteSpecifies whether to update the fields with the dirty attribute.
IgnoreOleDataboolRead/WriteSpecifies whether to ignore the OLE data.
UseSystemLcidboolRead/WriteGets or sets whether to use LCID value obtained from Windows registry to determine page setup default margins.
LanguagePreferencesLanguagePreferencesReadGets language preferences that will be used when document is loading.
RecoveryModeDocumentRecoveryModeRead/WriteDefines how the document should be handled if errors occur during loading.

Methods

SignatureDescription
TxtLoadOptions()Initializes a new instance of this class with default values.
LoadOptions()Initializes a new instance of this class with default values.
Equals(obj: object)Determines whether the specified object is equal in value to the current object.

See Also