New to Telerik Document ProcessingStart a free 30-day trial

Configures HTML import behavior, including generic font mappings, external resource loading, and CSS stylesheet handling.

Definition

Namespace:Telerik.Windows.Documents.Flow.FormatProviders.Html

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

C#
public class HtmlImportSettings

Inheritance: objectHtmlImportSettings

Constructors

Initializes a new instance of the HtmlImportSettings class.

C#
public HtmlImportSettings()

Properties

Gets or sets the CSS stylesheet applied as default styles during HTML import, establishing baseline formatting rules.

C#
public string DefaultStyleSheet { get; set; }
Property Value:

The default style sheet that will be used during the import.

Gets the mappings from HTML generic font families to actual fonts used during import.

C#
public GenericHtmlFonts GenericFonts { get; }
Property Value:

The generic fonts collection.

Gets or sets whether non-breaking space characters (U+00A0) are converted to regular spaces during import (default is false).

The default value is false.

C#
public bool ReplaceNonBreakingSpaces { get; set; }
Property Value:

Indicates whether non breaking spaces should be replaced.

Events

Raised when the provider encounters an image URI during import, allowing custom image retrieval logic.

C#
public event EventHandler<LoadImageFromUriEventArgs> LoadImageFromUri

Raised when the provider encounters an external stylesheet URI during import, allowing custom CSS retrieval logic.

C#
public event EventHandler<LoadStyleSheetFromUriEventArgs> LoadStyleSheetFromUri