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

Represents a format provider that can import and export DOCX documents from/to RadDocument.

Definition

Namespace:Telerik.WinForms.Documents.FormatProviders.OpenXml.Docx

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class DocxFormatProvider : DocumentFormatProviderBase, IDocumentFormatProvider, IConfigurableDocxFormatProvider

Inheritance: objectDocumentFormatProviderBaseDocxFormatProvider

Implements: IConfigurableDocxFormatProviderIDocumentFormatProvider

Inherited Members DocumentFormatProviderBase.Import(byte[])DocumentFormatProviderBase.Export(RadDocument)

Constructors

C#
public DocxFormatProvider()

Properties

Gets a value indicating whether this instance can export.

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

true if this instance can export; otherwise, false.

Overrides: DocumentFormatProviderBase.CanExport

Gets a value indicating whether this instance can import.

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

true if this instance can import; otherwise, false.

Overrides: DocumentFormatProviderBase.CanImport

Gets or sets the settings used while exporting content.

C#
public DocxExportSettings ExportSettings { get; set; }
Property Value:

The export settings.

Implements: IConfigurableDocxFormatProvider.ExportSettings

Gets the description of the supported file formats.

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

The files description.

Overrides: DocumentFormatProviderBase.FilesDescription

Gets or sets the settings used while importing content.

C#
public DocxImportSettings ImportSettings { get; set; }
Property Value:

The import settings.

Implements: IConfigurableDocxFormatProvider.ImportSettings

Gets the name of the specific format provider.

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

The name.

Overrides: DocumentFormatProviderBase.Name

Gets the extensions supported by this format provider.

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

The supported extensions.

Overrides: DocumentFormatProviderBase.SupportedExtensions

Methods

Exports the specified RadDocument instance.

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

The document.

outputStream

The Stream the document should be saved into.

Overrides: DocumentFormatProviderBase.Export(RadDocument, Stream)

Imports the specified Stream into a RadDocument instance.

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

The Stream containing the document data.

Returns:

RadDocument

The generated RadDocument instance.

Overrides: DocumentFormatProviderBase.Import(Stream)