IDocumentFormatProvider
Represents a contract for a document format provider that can handle different types of document formats.
Definition
Namespace:Telerik.Windows.Documents.FormatProviders
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public interface IDocumentFormatProvider
Derived Classes:
Properties
Determines whether the document format provider can export a document to a specific format.
bool CanExport { get; }
Determines whether the document format provider can import a specified format.
bool CanImport { get; }
Represents the description of files supported by the document format provider in the Telerik Windows Documents library.
string FilesDescription { get; }
Gets the name of the document format provider.
string Name { get; }
A string that represents the name of the document format provider.
Gets the supported file extensions for the document format provider.
IEnumerable<string> SupportedExtensions { get; }
Methods
Exports the specified RadDocument to a given stream using the document format provider.
void Export(RadDocument document, Stream output)
The RadDocument to be exported.
outputStreamThe stream to which the document will be exported.
Exports the specified RadDocument to a desired format using the document format provider.
byte[] Export(RadDocument document)
The RadDocument to be exported.
Returns:byte[]
A boolean value indicating whether the export operation was successful.
Imports a document from a byte array using the specified format provider.
RadDocument Import(byte[] input)
A byte array containing the document data to be imported.
Returns:An object of type RadDocument representing the imported document.
Imports a document from the specified stream using the document format provider.
RadDocument Import(Stream input)
The stream from which the document will be imported.
Returns:A value of type T representing the imported document.