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

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

Definition

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

Assembly:Telerik.Windows.Controls.RichTextBox.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

Determines whether the specified document can be exported to the Open XML Docx format.

C#
public override bool CanExport { get; }

Overrides: DocumentFormatProviderBase.CanExport

Determines whether the specified document can be imported by the DocxFormatProvider.

C#
public override bool CanImport { get; }

Overrides: DocumentFormatProviderBase.CanImport

Gets or sets the export settings for the DocxFormatProvider.

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

An object representing the settings used during the export process.

Implements: IConfigurableDocxFormatProvider.ExportSettings

Represents the description of the files handled by the Docx format provider in the Telerik RadRichTextBox.

C#
public override string FilesDescription { get; }

Overrides: DocumentFormatProviderBase.FilesDescription

Gets or sets the import settings for the DocxFormatProvider.

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

The import settings that determine how the document is processed when imported.

Implements: IConfigurableDocxFormatProvider.ImportSettings

Gets the name of the Docx format provider.

C#
public override string Name { get; }

Overrides: DocumentFormatProviderBase.Name

Gets the supported file extensions for the DOCX format.

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

Overrides: DocumentFormatProviderBase.SupportedExtensions

Methods

Exports the specified RadDocument to a DOCX format stream.

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

The RadDocument to be exported.

outputStream

The stream where the exported DOCX content will be written.

Overrides: DocumentFormatProviderBase.Export(RadDocument, Stream)

Imports a document from the specified stream in the OpenXml Docx format.

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

The stream from which to import the document.

Returns:

RadDocument

A document representation of the imported content.

Overrides: DocumentFormatProviderBase.Import(Stream)