New to Telerik UI for WinFormsStart a free 30-day trial

Provides different settings that are applied while importing HTML content into a RadDocument instance.

Definition

Namespace:Telerik.WinForms.Documents.FormatProviders.Html

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class HtmlImportSettings : XamlImportSettings

Inheritance: objectXamlImportSettingsHtmlImportSettings

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

Constructors

C#
public HtmlImportSettings()

Properties

Gets or sets a value indicating 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.

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

true if the default font properties of RadRichTextBox should be used; otherwise, false.

Gets or sets a value indicating whether the heading style of the imported HTML should be imported or not.

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

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

Methods

Raises the event.

C#
protected virtual void OnLoadImageEvent(LoadImageEventArgs args)
Parameters:argsLoadImageEventArgs

The LoadImageEventArgs instance containing the event data.

Events

C#
public event EventHandler<FloatingUIContainerImportedEventArgs> FloatingUIContainerImported

Occurs when an FloatingUIContainer is being imported.

C#
public event EventHandler<FloatingUIContainerImportingEventArgs> FloatingUIContainerImporting

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

C#
public event EventHandler<FontSubstitutingEventArgs> FontSubstituting

Occurs after importing an InlineUIContainer.

C#
public event EventHandler<InlineUIContainerImportedEventArgs> InlineUIContainerImported

Occurs when an InlineUIContainer is being imported.

C#
public event EventHandler<InlineUIContainerImportingEventArgs> InlineUIContainerImporting

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

C#
public event EventHandler<LoadImageEventArgs> LoadImageFromUrl