New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
public abstract class DocumentFormatProviderBase : IDocumentFormatProvider

Inheritance: objectDocumentFormatProviderBase

Derived Classes: HtmlFormatProviderDocxFormatProviderPdfFormatProviderRtfFormatProviderTxtFormatProviderXamlFormatProvider...

Implements: IDocumentFormatProvider

Constructors

C#
protected DocumentFormatProviderBase()

Properties

Gets a value indicating whether this instance can export.

C#
public abstract bool CanExport { get; }
Property Value:

true if this instance can export; otherwise, false.

Implements: IDocumentFormatProvider.CanExport

Gets a value indicating whether this instance can import.

C#
public abstract bool CanImport { get; }
Property Value:

true if this instance can import; otherwise, false.

Implements: IDocumentFormatProvider.CanImport

Gets the description of the supported file formats.

C#
public virtual string FilesDescription { get; }
Property Value:

The files description.

Implements: IDocumentFormatProvider.FilesDescription

Gets the name of the specific format provider.

C#
public abstract string Name { get; }
Property Value:

The name.

Implements: IDocumentFormatProvider.Name

Gets the extensions supported by this format provider.

C#
public abstract IEnumerable<string> SupportedExtensions { get; }
Property Value:

The supported extensions.

Implements: IDocumentFormatProvider.SupportedExtensions

Methods

Exports the specified RadDocument instance.

C#
public abstract void Export(RadDocument document, Stream output)
Parameters:documentRadDocument

The document.

outputStream

The Stream the document should be saved into.

Implements: IDocumentFormatProvider.Export(RadDocument, Stream)

Exports the specified document to a byte array.

C#
public virtual byte[] Export(RadDocument document)
Parameters:documentRadDocument

The document.

Returns:

byte[]

A byte array containing the document data.

Implements: IDocumentFormatProvider.Export(RadDocument)

Imports the specified byte array into a RadDocument instance.

C#
public virtual RadDocument Import(byte[] input)
Parameters:inputbyte[]

The byte array containing the document data.

Returns:

RadDocument

The generated RadDocument instance.

Implements: IDocumentFormatProvider.Import(byte[])

Imports the specified Stream into a RadDocument instance.

C#
public abstract RadDocument Import(Stream input)
Parameters:inputStream

The Stream containing the document data.

Returns:

RadDocument

The generated RadDocument instance.

Implements: IDocumentFormatProvider.Import(Stream)