Aspose::Words::Loading::TxtLoadOptions class

TxtLoadOptions class

Allows to specify additional options when loading Text document into a Document object. To learn more, visit the Specify Load Options documentation article.

class TxtLoadOptions : public Aspose::Words::Loading::LoadOptions

Methods

MethodDescription
Equals(System::SharedPtr<System::Object>) override
get_AutoNumberingDetection() constGets a boolean value indicating either automatic numbering detection will be performed while loading a document. The default value is true.
get_BaseUri() constGets or sets the string that will be used to resolve relative URIs found in the document into absolute URIs when required. Can be null or empty string. Default is null.
get_ConvertMetafilesToPng() constGets or sets whether to convert metafile (Wmf or Emf) images to Png image format.
get_ConvertShapeToOfficeMath() constGets or sets whether to convert shapes with EquationXML to Office Math objects.
get_DetectHyperlinks() const
get_DetectNumberingWithWhitespaces() constAllows to specify how numbered list items are recognized when document is imported from plain text format. The default value is true.
get_DocumentDirection() constGets or sets a document direction. The default value is LeftToRight.
get_Encoding() constGets 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. Can be null. Default is null.
get_FontSettings() constAllows to specify document font settings.
get_IgnoreOleData() constSpecifies whether to ignore the OLE data.
get_LanguagePreferences() constGets language preferences that will be used when document is loading.
get_LeadingSpacesOptions() constGets or sets preferred option of a leading space handling. Default value is ConvertToIndent.
get_LoadFormat() constSpecifies the format of the document to be loaded. Default is Auto.
get_MswVersion() constAllows to specify that the document loading process should match a specific MS Word version. Default value is Word2019
get_Password() constGets or sets the password for opening an encrypted document. Can be null or empty string. Default is null.
get_PreserveIncludePictureField() constGets or sets whether to preserve the INCLUDEPICTURE field when reading Microsoft Word formats. The default value is false.
get_ProgressCallback() constCalled during loading a document and accepts data about loading progress.
get_ResourceLoadingCallback() constAllows to control how external resources (images, style sheets) are loaded when a document is imported from HTML, MHTML.
get_TempFolder() constAllows to use temporary files when reading document. By default this property is null and no temporary files are used.
get_TrailingSpacesOptions() constGets or sets preferred option of a trailing space handling. Default value is Trim.
get_UpdateDirtyFields() constSpecifies whether to update the fields with the dirty attribute.
get_WarningCallback() constCalled during a load operation, when an issue is detected that might result in data or formatting fidelity loss.
GetType() const override
Is(const System::TypeInfo&) const override
LoadOptions()Initializes a new instance of this class with default values.
LoadOptions(const System::String&)A shortcut to initialize a new instance of this class with the specified password to load an encrypted document.
LoadOptions(Aspose::Words::LoadFormat, const System::String&, const System::String&)A shortcut to initialize a new instance of this class with properties set to the specified values.
set_AutoNumberingDetection(bool)Sets a boolean value indicating either automatic numbering detection will be performed while loading a document. The default value is true.
set_BaseUri(const System::String&)Setter for Aspose::Words::Loading::LoadOptions::get_BaseUri.
set_ConvertMetafilesToPng(bool)Setter for Aspose::Words::Loading::LoadOptions::get_ConvertMetafilesToPng.
set_ConvertShapeToOfficeMath(bool)Setter for Aspose::Words::Loading::LoadOptions::get_ConvertShapeToOfficeMath.
set_DetectHyperlinks(bool)
set_DetectNumberingWithWhitespaces(bool)Setter for Aspose::Words::Loading::TxtLoadOptions::get_DetectNumberingWithWhitespaces.
set_DocumentDirection(Aspose::Words::Loading::DocumentDirection)Setter for Aspose::Words::Loading::TxtLoadOptions::get_DocumentDirection.
set_Encoding(const System::SharedPtr<System::Text::Encoding>&)Setter for Aspose::Words::Loading::LoadOptions::get_Encoding.
set_FontSettings(const System::SharedPtr<Aspose::Words::Fonts::FontSettings>&)Setter for Aspose::Words::Loading::LoadOptions::get_FontSettings.
set_IgnoreOleData(bool)Setter for Aspose::Words::Loading::LoadOptions::get_IgnoreOleData.
set_LeadingSpacesOptions(Aspose::Words::Loading::TxtLeadingSpacesOptions)Setter for Aspose::Words::Loading::TxtLoadOptions::get_LeadingSpacesOptions.
set_LoadFormat(Aspose::Words::LoadFormat)Setter for Aspose::Words::Loading::LoadOptions::get_LoadFormat.
set_MswVersion(Aspose::Words::Settings::MsWordVersion)Setter for Aspose::Words::Loading::LoadOptions::get_MswVersion.
set_Password(const System::String&)Setter for Aspose::Words::Loading::LoadOptions::get_Password.
set_PreserveIncludePictureField(bool)Setter for Aspose::Words::Loading::LoadOptions::get_PreserveIncludePictureField.
set_ProgressCallback(const System::SharedPtr<Aspose::Words::Loading::IDocumentLoadingCallback>&)Called during loading a document and accepts data about loading progress.
set_ResourceLoadingCallback(const System::SharedPtr<Aspose::Words::Loading::IResourceLoadingCallback>&)Setter for Aspose::Words::Loading::LoadOptions::get_ResourceLoadingCallback.
set_TempFolder(const System::String&)Setter for Aspose::Words::Loading::LoadOptions::get_TempFolder.
set_TrailingSpacesOptions(Aspose::Words::Loading::TxtTrailingSpacesOptions)Setter for Aspose::Words::Loading::TxtLoadOptions::get_TrailingSpacesOptions.
set_UpdateDirtyFields(bool)Specifies whether to update the fields with the dirty attribute.
set_WarningCallback(const System::SharedPtr<Aspose::Words::IWarningCallback>&)Setter for Aspose::Words::Loading::LoadOptions::get_WarningCallback.
TxtLoadOptions()Initializes a new instance of this class with default values.
static Type()

See Also