Class DocFormatProvider
Imports legacy DOC (Word 97-2003) documents into RadFlowDocument instances; export is not supported.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Flow.FormatProviders.Doc
Assembly: Telerik.Windows.Documents.Flow.FormatProviders.Doc.dll
Syntax
public class DocFormatProvider : BinaryFormatProviderBase<RadFlowDocument>, IFormatProvider<RadFlowDocument>, IBinaryFormatProvider<RadFlowDocument>
Constructors
DocFormatProvider()
Properties
CanExport
Gets a value indicating whether this provider supports exporting documents (always false for DOC).
Declaration
public override bool CanExport { get; }
Property Value
|
System.Boolean
The value indicating whether can export. |
Overrides
CanImport
Gets a value indicating whether this provider supports importing documents (always true for DOC).
Declaration
public override bool CanImport { get; }
Property Value
|
System.Boolean
The value indicating whether can import. |
Overrides
SupportedExtensions
Gets the file extensions supported by this provider (.doc, .dot).
Declaration
public override IEnumerable<string> SupportedExtensions { get; }
Property Value
|
System.Collections.Generic.IEnumerable<System.String>
The supported extensions. |
Overrides
Methods
ImportOverride(Stream)
Imports the specified input.
Declaration
[Obsolete("This method is obsolete. Please use ImportOverride(Stream input, CancellationToken cancellationToken) instead.")]
protected override RadFlowDocument ImportOverride(Stream input)
Parameters
|
System.IO.Stream
input
The input stream containing the doc file. |
Returns
|
RadFlowDocument
The imported document. |
Overrides
ImportOverride(Stream, CancellationToken)
Imports the specified input.
Declaration
protected override RadFlowDocument ImportOverride(Stream input, CancellationToken cancellationToken)
Parameters
|
System.IO.Stream
input
The input stream containing the doc file. |
|
System.Threading.CancellationToken
cancellationToken
The cancellation token used to cancel the operation. |
Returns
|
RadFlowDocument
The imported document. |