Class HtmlImportSettings
Configures HTML import behavior, including generic font mappings, external resource loading, and CSS stylesheet handling.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Flow.FormatProviders.Html
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public class HtmlImportSettings
Constructors
HtmlImportSettings()
Properties
DefaultStyleSheet
Gets or sets the CSS stylesheet applied as default styles during HTML import, establishing baseline formatting rules.
Declaration
public string DefaultStyleSheet { get; set; }
Property Value
|
System.String
The default style sheet that will be used during the import. |
GenericFonts
Gets the mappings from HTML generic font families to actual fonts used during import.
Declaration
public GenericHtmlFonts GenericFonts { get; }
Property Value
|
GenericHtmlFonts
The generic fonts collection. |
ReplaceNonBreakingSpaces
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.
Declaration
public bool ReplaceNonBreakingSpaces { get; set; }
Property Value
|
System.Boolean
Indicates whether non breaking spaces should be replaced. |
Events
LoadFromUri
Occurs when loading from URL.
Declaration
[Obsolete("This event will be removed in R1 2022. For loading images from Uris use the new LoadImageFromUri and for loading external stylesheets - LoadStyleSheetFromUri", false)]
public event EventHandler<LoadFromUriEventArgs> LoadFromUri
Event Type
|
System.EventHandler<LoadFromUriEventArgs>
|
LoadImageFromUri
Raised when the provider encounters an image URI during import, allowing custom image retrieval logic.
Declaration
public event EventHandler<LoadImageFromUriEventArgs> LoadImageFromUri
Event Type
|
System.EventHandler<LoadImageFromUriEventArgs>
|
LoadStyleSheetFromUri
Raised when the provider encounters an external stylesheet URI during import, allowing custom CSS retrieval logic.
Declaration
public event EventHandler<LoadStyleSheetFromUriEventArgs> LoadStyleSheetFromUri
Event Type
|
System.EventHandler<LoadStyleSheetFromUriEventArgs>
|