ClassDocumentFormatProviderBase
A base class defining members for importing and exporting content to/from RadDocument.
Definition
Namespace:Telerik.Windows.Documents.FormatProviders
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public abstract class DocumentFormatProviderBase : IDocumentFormatProvider
Inheritance: objectDocumentFormatProviderBase
Derived Classes:
Implements:
Constructors
DocumentFormatProviderBase()
Declaration
protected DocumentFormatProviderBase()
Properties
CanExport
Gets a value indicating whether this instance can export.
Declaration
public abstract bool CanExport { get; }
Property Value
true if this instance can export; otherwise, false.
Implements
CanImport
Gets a value indicating whether this instance can import.
Declaration
public abstract bool CanImport { get; }
Property Value
true if this instance can import; otherwise, false.
Implements
FilesDescription
Gets the description of the supported file formats.
Declaration
public virtual string FilesDescription { get; }
Property Value
The files description.
Implements
Name
Gets the name of the specific format provider.
Declaration
public abstract string Name { get; }
Property Value
The name.
Implements
SupportedExtensions
Gets the extensions supported by this format provider.
Declaration
public abstract IEnumerable<string> SupportedExtensions { get; }
Property Value
The supported extensions.
Implements
Methods
Export(RadDocument)
Exports the specified document to a byte array.
Export(RadDocument, Stream)
Exports the specified RadDocument instance.
Declaration
public abstract void Export(RadDocument document, Stream output)
Parameters
document
The document.
output
The Stream the document should be saved into.
Implements
Import(Stream)
Imports the specified Stream into a RadDocument instance.
Declaration
public abstract RadDocument Import(Stream input)
Parameters
input
The Stream containing the document data.
Returns
The generated RadDocument instance.
Implements
Import(byte[])
Imports the specified byte array into a RadDocument instance.
Declaration
public virtual RadDocument Import(byte[] input)
Parameters
input
byte[]
The byte array containing the document data.
Returns
The generated RadDocument instance.
Implements