Class HTMLImportSettings
Inheritance
System.Object
HTMLImportSettings
Namespace: Syncfusion.DocIO.DLS
Assembly: Syncfusion.DocIO.Base.dll
Syntax
public class HTMLImportSettings : Object
Constructors
HTMLImportSettings()
Declaration
public HTMLImportSettings()
Properties
IsConsiderListStyleAttribute
Gets or sets a value indicating whether to consider the list style type for the corresponding list . Default value is false.
Declaration
public bool IsConsiderListStyleAttribute { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True then considers the list style type; otherwise, false |
Remarks
This property will be considered only for list style type None in HTML importing
Examples
The following code example demonstrates how to set value for IsConsiderListStyleAttribute property
private void Button1_Click(System.Object sender, System.EventArgs e)
{
//Creates instance for HTML import settings.
HTMLImportSettings hTMLImport = new HTMLImportSettings();
//Enable the IsConsiderListStyleAttribute to consider the list style type.
hTMLImport.IsConsiderListStyleAttribute = true;
//Creates instance for Word document.
WordDocument wordDocument = new WordDocument();
//Sets the HTML import settings for HTML to Word conversion.
wordDocument.HTMLImportSettings = hTMLImport;
//Opens the existing HTML document.
wordDocument.Open(@"InputHTML.html");
//Save the document as Word document.
wordDocument.Save("sample.docx");
//Close the document.
}
Private Sub button_Click(sender As Object, e As EventArgs)
'Creates instance for HTML import settings.
Dim hTMLImport As New HTMLImportSettings()
'Enable the IsConsiderNoneListStyle to consider the list style type.
hTMLImport.IsConsiderListStyleAttribute = True
'Creates instance for Word document.
Dim wordDocument As New WordDocument()
'Sets the HTML import settings for HTML to Word conversion.
WordDocument.HTMLImportSettings = hTMLImport
'Opens the existing HTML document.
WordDocument.Open("InputHTML.html")
'Save the document as Word document.
WordDocument.Save("sample.docx")
'Close the document.
WordDocument.Close()
End Sub
Methods
add_ImageDownloadingFailed(ImageDownloadingFailedEventHandler)
Declaration
public void add_ImageDownloadingFailed(ImageDownloadingFailedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ImageDownloadingFailedEventHandler | value |
add_ImageNodeVisited(ImageNodeVisitedEventHandler)
Declaration
public void add_ImageNodeVisited(ImageNodeVisitedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ImageNodeVisitedEventHandler | value |
remove_ImageDownloadingFailed(ImageDownloadingFailedEventHandler)
Declaration
public void remove_ImageDownloadingFailed(ImageDownloadingFailedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ImageDownloadingFailedEventHandler | value |
remove_ImageNodeVisited(ImageNodeVisitedEventHandler)
Declaration
public void remove_ImageNodeVisited(ImageNodeVisitedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ImageNodeVisitedEventHandler | value |
Events
ImageDownloadingFailed
Throws event when downloading of HTTP or FTP image fails from secured sites.
Declaration
public event ImageDownloadingFailedEventHandler ImageDownloadingFailed
Event Type
Type |
---|
ImageDownloadingFailedEventHandler |
Remarks
This event is not supported in MVC6 and Xamarin platforms.
ImageNodeVisited
Declaration
public event ImageNodeVisitedEventHandler ImageNodeVisited
Event Type
Type |
---|
ImageNodeVisitedEventHandler |