New to Telerik Document ProcessingStart a free 30-day trial

Imports and exports HTML documents to and from RadFlowDocument instances, with support for CSS and embedded or external resources.

Definition

Constructors

Initializes a new instance of the HtmlFormatProvider class.

C#
public HtmlFormatProvider()

Properties

Gets a value indicating whether this provider supports exporting documents (always true for HTML).

C#
public override bool CanExport { get; }
Property Value:

The value indicating whether can export.

Overrides: FormatProviderBase<RadFlowDocument>.CanExport

Gets a value indicating whether this provider supports importing documents (always true for HTML).

C#
public override bool CanImport { get; }
Property Value:

The value indicating whether can import.

Overrides: FormatProviderBase<RadFlowDocument>.CanImport

Gets or sets the settings that control HTML export behavior, including image and style handling.

C#
public HtmlExportSettings ExportSettings { get; set; }
Property Value:

The export settings.

Gets or sets the settings that control HTML import behavior, including generic font mappings and resource loading.

C#
public HtmlImportSettings ImportSettings { get; set; }
Property Value:

The import settings.

Gets the file extensions supported by this provider (.html, .htm).

C#
public override IEnumerable<string> SupportedExtensions { get; }
Property Value:

The supported extensions.

Overrides: FormatProviderBase<RadFlowDocument>.SupportedExtensions

Methods

Exports the specified document.

C#
protected override void ExportOverride(RadFlowDocument document, Stream output, CancellationToken cancellationToken)
Parameters:documentRadFlowDocument

The document.

outputStream

The output.

cancellationTokenCancellationToken

The cancellation token used to cancel the operation.

Overrides: FormatProviderBase<RadFlowDocument>.ExportOverride(RadFlowDocument, Stream, CancellationToken)

Imports the specified input.

C#
protected override RadFlowDocument ImportOverride(Stream input, CancellationToken cancellationToken)
Parameters:inputStream

The input.

cancellationTokenCancellationToken

The cancellation token used to cancel the operation.

Returns:

RadFlowDocument

The imported document.

Overrides: FormatProviderBase<RadFlowDocument>.ImportOverride(Stream, CancellationToken)