RtfFormatProvider
Imports and exports flow documents in Rich Text Format (RTF) with support for text formatting, tables, images, and document structure.
Definition
Namespace:Telerik.Windows.Documents.Flow.FormatProviders.Rtf
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public class RtfFormatProvider : TextBasedFormatProviderBase<RadFlowDocument>, IFormatProvider<RadFlowDocument>, ITextBasedFormatProvider<RadFlowDocument>
Inheritance: objectFormatProviderBase<RadFlowDocument>TextBasedFormatProviderBase<RadFlowDocument>RtfFormatProvider
Implements:
Inherited Members
Constructors
Initializes a new instance of the RtfFormatProvider class with default export settings.
public RtfFormatProvider()
Properties
Gets whether this provider can export to RTF; always returns true.
public override bool CanExport { get; }
The value indicating whether can export.
Overrides:
Gets whether this provider can import RTF documents; always returns true.
public override bool CanImport { get; }
The value indicating whether can import.
Overrides:
Gets or sets the configuration options for RTF export, such as image compatibility mode.
public RtfExportSettings ExportSettings { get; set; }
The export settings.
Gets the file extensions supported by this provider; returns ".rtf".
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: