Class
HtmlImportSettings

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:

cs-api-definition
public class HtmlImportSettings : XamlImportSettings

Inheritance: objectXamlImportSettingsHtmlImportSettings

Inherited Members XamlImportSettings.AllowedAssembliesXamlImportSettings.AllowedTypesXamlImportSettings.AssembliesTokensXamlImportSettings.PreProcessingXamlXamlImportSettings.ImageImported

Constructors

HtmlImportSettings()

Declaration

cs-api-definition
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

cs-api-definition
public bool UseDefaultStylesheetForFontProperties { get; set; }

Property Value

bool

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

cs-api-definition
public bool UseHtmlHeadingStyles { get; set; }

Property Value

bool

true if the style should be imported; otherwise, false.

Methods

OnLoadImageEvent(LoadImageEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnLoadImageEvent(LoadImageEventArgs args)

Parameters

args

LoadImageEventArgs

The LoadImageEventArgs instance containing the event data.

Events

FloatingUIContainerImported

Declaration

cs-api-definition
public event EventHandler<FloatingUIContainerImportedEventArgs> FloatingUIContainerImported

Event Value

EventHandler<FloatingUIContainerImportedEventArgs>

FloatingUIContainerImporting

Occurs when an FloatingUIContainer is being imported.

Declaration

cs-api-definition
public event EventHandler<FloatingUIContainerImportingEventArgs> FloatingUIContainerImporting

Event Value

EventHandler<FloatingUIContainerImportingEventArgs>

FontSubstituting

Occurs when the HTML source specifies a Font that is not available to the RichTextBox.

Declaration

cs-api-definition
public event EventHandler<FontSubstitutingEventArgs> FontSubstituting

Event Value

EventHandler<FontSubstitutingEventArgs>

InlineUIContainerImported

Occurs after importing an InlineUIContainer.

Declaration

cs-api-definition
public event EventHandler<InlineUIContainerImportedEventArgs> InlineUIContainerImported

Event Value

EventHandler<InlineUIContainerImportedEventArgs>

InlineUIContainerImporting

Occurs when an InlineUIContainer is being imported.

Declaration

cs-api-definition
public event EventHandler<InlineUIContainerImportingEventArgs> InlineUIContainerImporting

Event Value

EventHandler<InlineUIContainerImportingEventArgs>

LoadImageFromUrl

Occurs when an ImageInline object is being loaded through a URL source.

Declaration

cs-api-definition
public event EventHandler<LoadImageEventArgs> LoadImageFromUrl

Event Value

EventHandler<LoadImageEventArgs>