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