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