ClassHtmlFormatProvider
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
HtmlFormatProvider()
Initializes a new instance of the HtmlFormatProvider class.
Declaration
public HtmlFormatProvider()
Properties
CanExport
Gets a value indicating whether this provider supports exporting documents (always true for HTML).
Declaration
public override bool CanExport { get; }
Property Value
The value indicating whether can export.
Overrides
CanImport
Gets a value indicating whether this provider supports importing documents (always true for HTML).
Declaration
public override bool CanImport { get; }
Property Value
The value indicating whether can import.
Overrides
ExportSettings
Gets or sets the settings that control HTML export behavior, including image and style handling.
Declaration
public HtmlExportSettings ExportSettings { get; set; }
Property Value
The export settings.
ImportSettings
Gets or sets the settings that control HTML import behavior, including generic font mappings and resource loading.
Declaration
public HtmlImportSettings ImportSettings { get; set; }
Property Value
The import settings.
SupportedExtensions
Gets the file extensions supported by this provider (.html, .htm).
Declaration
public override IEnumerable<string> SupportedExtensions { get; }
Property Value
The supported extensions.
Overrides
Methods
ExportOverride(RadFlowDocument, Stream)
Exports the specified document.
Declaration
[Obsolete("This method is obsolete. Please use ExportOverride(RadFlowDocument document, Stream output, CancellationToken cancellationToken) instead.")]
protected override void ExportOverride(RadFlowDocument document, Stream output)
Parameters
document
The document.
output
The output.
Overrides
ExportOverride(RadFlowDocument, Stream, CancellationToken)
Exports the specified document.
Declaration
protected override void ExportOverride(RadFlowDocument document, Stream output, CancellationToken cancellationToken)
Parameters
document
The document.
output
The output.
cancellationToken
The cancellation token used to cancel the operation.
Overrides
ImportOverride(Stream)
Imports the specified input.
Declaration
[Obsolete("This method is obsolete. Please use ImportOverride(Stream input, CancellationToken cancellationToken) instead.")]
protected override RadFlowDocument ImportOverride(Stream input)
Parameters
input
The input.
Returns
The imported document.
Overrides
ImportOverride(Stream, CancellationToken)
Imports the specified input.
Declaration
protected override RadFlowDocument ImportOverride(Stream input, CancellationToken cancellationToken)
Parameters
input
The input.
cancellationToken
The cancellation token used to cancel the operation.
Returns
The imported document.
Overrides