New to Telerik Document ProcessingStart a free 30-day trial

Imports and exports flow documents as plain text, stripping all formatting and preserving only text content and line breaks.

Definition

Constructors

Initializes a new instance of the TxtFormatProvider class.

C#
public TxtFormatProvider()

Properties

Gets a value indicating whether this provider supports export.

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 import.

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

The value indicating whether can import.

Overrides: FormatProviderBase<RadFlowDocument>.CanImport

Gets the file extensions supported by this provider.

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)