Class
DocFormatProvider

Imports legacy DOC (Word 97-2003) documents into RadFlowDocument instances; export is not supported.

Definition

Namespace:Telerik.Windows.Documents.Flow.FormatProviders.Doc

Assembly:Telerik.Windows.Documents.Flow.FormatProviders.Doc.dll

Syntax:

cs-api-definition
public class DocFormatProvider : BinaryFormatProviderBase<RadFlowDocument>, IFormatProvider<RadFlowDocument>, IBinaryFormatProvider<RadFlowDocument>

Inheritance: objectFormatProviderBase<RadFlowDocument>BinaryFormatProviderBase<RadFlowDocument>DocFormatProvider

Implements: IBinaryFormatProvider<RadFlowDocument>IFormatProvider<RadFlowDocument>

Inherited Members BinaryFormatProviderBase<RadFlowDocument>.Import(byte[])BinaryFormatProviderBase<RadFlowDocument>.Import(byte[], TimeSpan?)BinaryFormatProviderBase<RadFlowDocument>.Export(RadFlowDocument)BinaryFormatProviderBase<RadFlowDocument>.Export(RadFlowDocument, TimeSpan?)FormatProviderBase<RadFlowDocument>.Import(Stream)FormatProviderBase<RadFlowDocument>.Import(Stream, TimeSpan?)FormatProviderBase<RadFlowDocument>.Export(RadFlowDocument, Stream)FormatProviderBase<RadFlowDocument>.Export(RadFlowDocument, Stream, TimeSpan?)FormatProviderBase<RadFlowDocument>.ExportOverride(RadFlowDocument, Stream)FormatProviderBase<RadFlowDocument>.ExportOverride(RadFlowDocument, Stream, CancellationToken)

Constructors

DocFormatProvider()

Initializes a new instance of the DocFormatProvider class.

Declaration

cs-api-definition
public DocFormatProvider()

Properties

CanExport

Gets a value indicating whether this provider supports exporting documents (always false for DOC).

Declaration

cs-api-definition
public override bool CanExport { get; }

Property Value

bool

The value indicating whether can export.

Overrides FormatProviderBase<RadFlowDocument>.CanExport

CanImport

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

Declaration

cs-api-definition
public override bool CanImport { get; }

Property Value

bool

The value indicating whether can import.

Overrides FormatProviderBase<RadFlowDocument>.CanImport

SupportedExtensions

Gets the file extensions supported by this provider (.doc, .dot).

Declaration

cs-api-definition
public override IEnumerable<string> SupportedExtensions { get; }

Property Value

IEnumerable<string>

The supported extensions.

Overrides FormatProviderBase<RadFlowDocument>.SupportedExtensions

Methods

ImportOverride(Stream)

Imports the specified input.

Declaration

cs-api-definition
[Obsolete("This method is obsolete. Please use ImportOverride(Stream input, CancellationToken cancellationToken) instead.")]
protected override RadFlowDocument ImportOverride(Stream input)

Parameters

input

Stream

The input stream containing the doc file.

Returns

RadFlowDocument

The imported document.

Overrides FormatProviderBase<RadFlowDocument>.ImportOverride(Stream)

ImportOverride(Stream, CancellationToken)

Imports the specified input.

Declaration

cs-api-definition
protected override RadFlowDocument ImportOverride(Stream input, CancellationToken cancellationToken)

Parameters

input

Stream

The input stream containing the doc file.

cancellationToken

CancellationToken

The cancellation token used to cancel the operation.

Returns

RadFlowDocument

The imported document.

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