ClassHtmlImportSettings
Provides different settings that are applied while importing HTML content into a RadDocument instance.
Definition
Namespace:Telerik.Windows.Documents.FormatProviders.Html
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class HtmlImportSettings : XamlImportSettings
Inheritance: objectXamlImportSettingsHtmlImportSettings
Inherited Members
Constructors
HtmlImportSettings()
Declaration
public HtmlImportSettings()
Properties
UseDefaultStylesheetForFontProperties
Gets or sets a value indicating whether whether the default font properties of RadRichTextBox or the defaults in the HTML specification should be used for the elements that do not set their FontSize, FontFamily, FontWeight and FontStyle explicitly.
Declaration
public bool UseDefaultStylesheetForFontProperties { get; set; }
Property Value
true if the default font properties of RadRichTextBox should be used; otherwise, false.
UseHtmlHeadingStyles
Gets or sets a value indicating whether the heading style of the imported HTML should be imported or not.
Declaration
public bool UseHtmlHeadingStyles { get; set; }
Property Value
true if the style should be imported; otherwise, false.
Methods
OnLoadImageEvent(LoadImageEventArgs)
Raises the event.
Declaration
protected virtual void OnLoadImageEvent(LoadImageEventArgs args)
Parameters
args
The LoadImageEventArgs instance containing the event data.
Events
FloatingUIContainerImported
Declaration
public event EventHandler<FloatingUIContainerImportedEventArgs> FloatingUIContainerImported
Event Value
FloatingUIContainerImporting
Occurs when an FloatingUIContainer is being imported.
Declaration
public event EventHandler<FloatingUIContainerImportingEventArgs> FloatingUIContainerImporting
Event Value
FontSubstituting
Occurs when the HTML source specifies a Font that is not available to the RichTextBox.
Declaration
public event EventHandler<FontSubstitutingEventArgs> FontSubstituting
Event Value
InlineUIContainerImported
Occurs after importing an InlineUIContainer.
Declaration
public event EventHandler<InlineUIContainerImportedEventArgs> InlineUIContainerImported
Event Value
InlineUIContainerImporting
Occurs when an InlineUIContainer is being imported.
Declaration
public event EventHandler<InlineUIContainerImportingEventArgs> InlineUIContainerImporting
Event Value
LoadImageFromUrl
Occurs when an ImageInline object is being loaded through a URL source.
Declaration
public event EventHandler<LoadImageEventArgs> LoadImageFromUrl
Event Value