HtmlLoadOptions
Overview
HtmlLoadOptions is a class in Aspose.Words FOSS for .NET.
Inherits from: LoadOptions.
Allows to specify additional options when loading HTML document into a Document object.
This class provides 5 methods for working with HtmlLoadOptions objects in .NET programs.
Available methods include: Equals, HtmlLoadOptions, LoadOptions.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: BaseUri, BlockImportMode, ConvertMetafilesToPng, ConvertShapeToOfficeMath, ConvertSvgToEmf, Encoding, and 19 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
SupportVml | bool | Read/Write | Gets or sets a value indicating whether to support VML images. |
WebRequestTimeout | int | Read/Write | The number of milliseconds to wait before the web request times out. |
PreferredControlType | HtmlControlType | Read/Write | Gets or sets preferred type of document nodes that will represent imported <input> and <select> elements. |
IgnoreNoscriptElements | bool | Read/Write | Gets or sets a value indicating whether to ignore <noscript> HTML elements. |
ConvertSvgToEmf | bool | Read/Write | Gets or sets a value indicating whether to convert loaded SVG images to the EMF format. |
BlockImportMode | BlockImportMode | Read/Write | Gets or sets a value that specifies how properties of block-level elements are imported. |
SupportFontFaceRules | bool | Read/Write | Gets or sets a value indicating whether to support @font-face rules and whether to load declared fonts. |
LoadFormat | LoadFormat | Read/Write | Specifies the format of the document to be loaded. |
Password | string | Read/Write | Gets or sets the password for opening an encrypted document. |
BaseUri | string | Read/Write | Gets or sets the string that will be used to resolve relative URIs found in the document into absolute URIs when required. |
Encoding | Encoding | Read/Write | Gets 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. |
ResourceLoadingCallback | IResourceLoadingCallback | Read/Write | Allows to control how external resources (images, style sheets) are loaded when a document is imported from HTML, MHTML. |
WarningCallback | IWarningCallback | Read/Write | Called during a load operation, when an issue is detected that might result in data or formatting fidelity loss. |
ProgressCallback | IDocumentLoadingCallback | Read/Write | Called during loading a document and accepts data about loading progress. |
PreserveIncludePictureField | bool | Read/Write | Gets or sets whether to preserve the INCLUDEPICTURE field when reading Microsoft Word formats. |
ConvertShapeToOfficeMath | bool | Read/Write | Gets or sets whether to convert shapes with EquationXML to Office Math objects. |
FontSettings | FontSettings | Read/Write | Allows to specify document font settings. |
TempFolder | string | Read/Write | Allows to use temporary files when reading document. |
ConvertMetafilesToPng | bool | Read/Write | Gets or sets whether to convert metafile(Wmf or Emf) images to Png image format. |
MswVersion | MsWordVersion | Read/Write | Allows to specify that the document loading process should match a specific MS Word version. |
UpdateDirtyFields | bool | Read/Write | Specifies whether to update the fields with the dirty attribute. |
IgnoreOleData | bool | Read/Write | Specifies whether to ignore the OLE data. |
UseSystemLcid | bool | Read/Write | Gets or sets whether to use LCID value obtained from Windows registry to determine page setup default margins. |
LanguagePreferences | LanguagePreferences | Read | Gets language preferences that will be used when document is loading. |
RecoveryMode | DocumentRecoveryMode | Read/Write | Defines how the document should be handled if errors occur during loading. |
Methods
| Signature | Description |
|---|---|
HtmlLoadOptions() | Initializes a new instance of this class with default values. |
HtmlLoadOptions(password: string) | A shortcut to initialize a new instance of this class with the specified password to load an encrypted document. |
HtmlLoadOptions(loadFormat: LoadFormat, password: string, baseUri: string) | A shortcut to initialize a new instance of this class with properties set to the specified 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. |