HtmlImportSettings
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:
public class HtmlImportSettings
Inheritance: objectHtmlImportSettings
Constructors
Initializes a new instance of the HtmlImportSettings class.
public HtmlImportSettings()
Properties
Gets or sets the CSS stylesheet applied as default styles during HTML import, establishing baseline formatting rules.
public string DefaultStyleSheet { get; set; }
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.
public GenericHtmlFonts GenericFonts { get; }
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.
public bool ReplaceNonBreakingSpaces { get; set; }
Indicates whether non breaking spaces should be replaced.
Events
Raised when the provider encounters an image URI during import, allowing custom image retrieval logic.
public event EventHandler<LoadImageFromUriEventArgs> LoadImageFromUri
Raised when the provider encounters an external stylesheet URI during import, allowing custom CSS retrieval logic.
public event EventHandler<LoadStyleSheetFromUriEventArgs> LoadStyleSheetFromUri