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

Provides different settings that are applied while exporting a RadDocument instance to HTML.

Definition

Namespace:Telerik.WinForms.Documents.FormatProviders.Html

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class HtmlExportSettings

Inheritance: objectHtmlExportSettings

Constructors

Initializes a new instance of the HtmlExportSettings class.

C#
public HtmlExportSettings()

Properties

Gets or sets which element tags should be exported.

C#
public DocumentExportLevel DocumentExportLevel { get; set; }
Property Value:

The document export level.

Gets or sets a value indicating whether the font-weight: bold should be exported as tag strong.

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

true if the font-weight should be exported as tag strong.; otherwise, false.

Gets or sets a value indicating whether empty document should be exported as empty string.

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

true if empty document should be exported as empty string; otherwise, false.

Gets or sets a value indicating whether the font styles: bold, italic and underline should be exported as tags.

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

true if the font styles should be exported as tags; otherwise, false.

Gets or sets a value indicating whether Heading styles should be exported as HTML heading styles (h1, h2 etc.)

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

true if Heading styles should be exported as HTML heading styles; otherwise, false.

Gets or sets a value indicating whether the font-style: italic should be exported as tag em.

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

true if the font-style should be exported as tag em; otherwise, false.

Gets or sets if RadRichTextBox should export only properties which has local or style value source.

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

true if properties with local or style value source should be exported; otherwise, false.

Gets or sets a value indicating whether an additional metadata should be added when exporting CSS classes. This metadata can be used later when importing.

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

true if the additional metadata should be exported; otherwise, false.

Gets or sets the image export mode.

C#
public ImageExportMode ImageExportMode { get; set; }
Property Value:

The image export mode.

PropertiesToIgnore

Dictionary<string, List<string>>

Gets a collection where you can add properties which will not be exported for a certain HTML tag.

C#
public Dictionary<string, List<string>> PropertiesToIgnore { get; }
Remarks:

Gets a collection where you can add properties which will not be exported for a certain HTML tag.

Gets or sets the span export mode. This option will not affect the content of the span but only how the span tag is exported.

C#
public SpanExportMode SpanExportMode { get; set; }
Property Value:

The span export mode.

Remarks:

Controls how the span tag is exported.

Gets or sets the style repository export mode.

C#
public StyleRepositoryExportMode StyleRepositoryExportMode { get; set; }
Property Value:

The style repository export mode.

Remarks:

Controls how the style repository of the document is exported to HTML.

Gets or sets the styles export mode. This controls how the properties of the document elements will be exported.

C#
public StylesExportMode StylesExportMode { get; set; }
Property Value:

The styles export mode.

Remarks:

Gets or sets the styles export mode. This controls how the properties of the document elements will be exported.

Gets or sets the title of the generated HTML file.

C#
public string Title { get; set; }
Property Value:

The title.

Events

Occurs when a CSS class is being exported.

C#
public event EventHandler<CssClassExportingEventArgs> CssClassExporting

Occurs when an FloatingUIContainer is being exported. You can use this event to customize the container and the way it is exported.

C#
public event EventHandler<FloatingUIContainerExportingEventArgs> FloatingUIContainerExporting

Occurs when an image is being exported. You can use this event to customize the image.

C#
public event EventHandler<ImageExportingEventArgs> ImageExporting

Occurs when an InlineUIContainer is being exported. You can use this event to customize the container and the way it is exported.

C#
public event EventHandler<InlineUIContainerExportingEventArgs> InlineUIContainerExporting