menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HTMLImportSettings - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HTMLImportSettings

    Inheritance
    System.Object
    HTMLImportSettings
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.DocIO.DLS
    Assembly: Syncfusion.DocIO.Base.dll
    Syntax
    public class HTMLImportSettings

    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

    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

    See Also

    ImageDownloadingFailedEventArgs
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved