IDocumentFormatProvider
Defines the metadata and conversion operations used to import and export RadDocument values in a file format.
Definition
Namespace:Telerik.WinForms.Documents.FormatProviders
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public interface IDocumentFormatProvider
Properties
Gets whether this provider is included in export file filters.
bool CanExport { get; }
Gets whether this provider is included in import file filters.
bool CanImport { get; }
Gets the description shown with this provider's extensions in file-selection filters.
string FilesDescription { get; }
SupportedExtensions
IEnumerable<string>
Gets the supported file extensions, including the leading period used by extension lookup.
IEnumerable<string> SupportedExtensions { get; }
Methods
Exports a document in this provider's format to a stream.
void Export(RadDocument document, Stream output)
The document to export.
outputStreamThe destination stream for the formatted data.
Exports a document in this provider's format to a byte array.
byte[] Export(RadDocument document)
The document to export.
Returns:byte[]
The formatted document data.
Imports provider-format data from a byte array into a document.
RadDocument Import(byte[] input)
The byte array containing the formatted document data.
Returns:The imported document.
Imports provider-format data from a stream into a document.
RadDocument Import(Stream input)
The stream containing the formatted document data.
Returns:The imported document.