HtmlFormatProvider
Imports and exports HTML documents to and from RadFlowDocument instances, with support for CSS and embedded or external resources.
Definition
Namespace:Telerik.Windows.Documents.Flow.FormatProviders.Html
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public class HtmlFormatProvider : TextBasedFormatProviderBase<RadFlowDocument>, IFormatProvider<RadFlowDocument>, ITextBasedFormatProvider<RadFlowDocument>
Inheritance: objectFormatProviderBase<RadFlowDocument>TextBasedFormatProviderBase<RadFlowDocument>HtmlFormatProvider
Implements:
Inherited Members
Constructors
Initializes a new instance of the HtmlFormatProvider class.
public HtmlFormatProvider()
Properties
Gets a value indicating whether this provider supports exporting documents (always true for HTML).
public override bool CanExport { get; }
The value indicating whether can export.
Overrides:
Gets a value indicating whether this provider supports importing documents (always true for HTML).
public override bool CanImport { get; }
The value indicating whether can import.
Overrides:
Gets or sets the settings that control HTML export behavior, including image and style handling.
public HtmlExportSettings ExportSettings { get; set; }
The export settings.
Gets or sets the settings that control HTML import behavior, including generic font mappings and resource loading.
public HtmlImportSettings ImportSettings { get; set; }
The import settings.
Gets the file extensions supported by this provider (.html, .htm).
public override IEnumerable<string> SupportedExtensions { get; }
The supported extensions.
Overrides:
Methods
Exports the specified document.
protected override void ExportOverride(RadFlowDocument document, Stream output, CancellationToken cancellationToken)
The document.
outputStreamThe output.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Overrides:
Imports the specified input.
protected override RadFlowDocument ImportOverride(Stream input, CancellationToken cancellationToken)
The input.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Returns:The imported document.
Overrides: