New to Telerik Document ProcessingStart a free 30-day trial

Imports and exports flow documents in Rich Text Format (RTF) with support for text formatting, tables, images, and document structure.

Definition

Constructors

Initializes a new instance of the RtfFormatProvider class with default export settings.

C#
public RtfFormatProvider()

Properties

Gets whether this provider can export to RTF; always returns true.

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

The value indicating whether can export.

Overrides: FormatProviderBase<RadFlowDocument>.CanExport

Gets whether this provider can import RTF documents; always returns true.

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

The value indicating whether can import.

Overrides: FormatProviderBase<RadFlowDocument>.CanImport

Gets or sets the configuration options for RTF export, such as image compatibility mode.

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

The export settings.

Gets the file extensions supported by this provider; returns ".rtf".

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)