HtmlFormatProvider
Represents a format provider that can import and export HTML documents from/to RadDocument.
Definition
Namespace:Telerik.WinForms.Documents.FormatProviders.Html
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class HtmlFormatProvider : DocumentFormatProviderBase, IConfigurableHtmlFormatProvider, ITextBasedDocumentFormatProvider, IDocumentFormatProvider
Inheritance: objectDocumentFormatProviderBaseHtmlFormatProvider
Implements:
Inherited Members
Constructors
Initializes a new instance of the HtmlFormatProvider class.
public HtmlFormatProvider()
Properties
Gets a value indicating whether this instance can export.
public override bool CanExport { get; }
true if this instance can export; otherwise, false.
Overrides:
Implements:
Gets a value indicating whether this instance can import.
public override bool CanImport { get; }
true if this instance can import; otherwise, false.
Overrides:
Implements:
Gets or sets the settings which will be used while exporting a document.
public HtmlExportSettings ExportSettings { get; set; }
The export settings.
Implements:
Gets the description of the supported file formats.
public override string FilesDescription { get; }
The files description.
Overrides:
Implements:
Gets or sets the settings which will be used while importing a document.
public HtmlImportSettings ImportSettings { get; set; }
The import settings.
Implements:
Gets the name of the specific format provider.
public override string Name { get; }
The name.
Overrides:
Implements:
SupportedExtensions
IEnumerable<string>
Gets the extensions supported by this format provider.
public override IEnumerable<string> SupportedExtensions { get; }
The supported extensions.
Overrides:
Implements:
Methods
Exports the specified RadDocument instance.
public override void Export(RadDocument document, Stream output)
The document.
outputStreamThe Stream the document should be saved into.
Overrides:
Implements:
Exports the specified RadDocument instance to a string.
public string Export(RadDocument document)
The document which should be exported.
Returns:A string containing the HTML document.
Implements:
Imports the specified Stream into a RadDocument instance.
public override RadDocument Import(Stream input)
The Stream containing the document data.
Returns:The generated RadDocument instance.
Overrides:
Implements:
Imports the specified string into a RadDocument instance.
public RadDocument Import(string input)
The HTML string.
Returns:The generated RadDocument instance.
Implements: