HtmlExportSettings
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:
public class HtmlExportSettings
Inheritance: objectHtmlExportSettings
Constructors
Initializes a new instance of the HtmlExportSettings class.
public HtmlExportSettings()
Properties
Gets or sets which element tags should be exported.
public DocumentExportLevel DocumentExportLevel { get; set; }
The document export level.
Gets or sets a value indicating whether the font-weight: bold should be exported as tag strong.
public bool ExportBoldAsStrong { get; set; }
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.
public bool ExportEmptyDocumentAsEmptyString { get; set; }
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.
public bool ExportFontStylesAsTags { get; set; }
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.)
public bool ExportHeadingsAsTags { get; set; }
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.
public bool ExportItalicAsEm { get; set; }
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.
public bool ExportLocalOrStyleValueSource { get; set; }
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.
public bool ExportStyleMetadata { get; set; }
true if the additional metadata should be exported; otherwise, false.
Gets or sets the image export mode.
public ImageExportMode ImageExportMode { get; set; }
The image export mode.
Gets a collection where you can add properties which will not be exported for a certain HTML tag.
public Dictionary<string, List<string>> PropertiesToIgnore { get; }
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.
public SpanExportMode SpanExportMode { get; set; }
The span export mode.
Controls how the span tag is exported.
Gets or sets the style repository export mode.
public StyleRepositoryExportMode StyleRepositoryExportMode { get; set; }
The style repository export mode.
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.
public StylesExportMode StylesExportMode { get; set; }
The styles export mode.
Gets or sets the styles export mode. This controls how the properties of the document elements will be exported.
Events
Occurs when a CSS class is being exported.
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.
public event EventHandler<FloatingUIContainerExportingEventArgs> FloatingUIContainerExporting
Occurs when an image is being exported. You can use this event to customize the image.
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.
public event EventHandler<InlineUIContainerExportingEventArgs> InlineUIContainerExporting