DocxFormatProvider
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:
public class DocxFormatProvider : DocumentFormatProviderBase, IDocumentFormatProvider, IConfigurableDocxFormatProvider
Inheritance: objectDocumentFormatProviderBaseDocxFormatProvider
Implements:
Inherited Members
Constructors
public DocxFormatProvider()
Properties
Determines whether the specified document can be exported to the Open XML Docx format.
public override bool CanExport { get; }
Overrides:
Determines whether the specified document can be imported by the DocxFormatProvider.
public override bool CanImport { get; }
Overrides:
Gets or sets the export settings for the DocxFormatProvider.
public DocxExportSettings ExportSettings { get; set; }
An object representing the settings used during the export process.
Implements:
Represents the description of the files handled by the Docx format provider in the Telerik RadRichTextBox.
public override string FilesDescription { get; }
Overrides:
Gets or sets the import settings for the DocxFormatProvider.
public DocxImportSettings ImportSettings { get; set; }
The import settings that determine how the document is processed when imported.
Implements:
Gets the name of the Docx format provider.
public override string Name { get; }
Overrides:
Gets the supported file extensions for the DOCX format.
public override IEnumerable<string> SupportedExtensions { get; }
Overrides:
Methods
Exports the specified RadDocument to a DOCX format stream.
public override void Export(RadDocument document, Stream output)
The RadDocument to be exported.
outputStreamThe stream where the exported DOCX content will be written.
Overrides:
Imports a document from the specified stream in the OpenXml Docx format.
public override RadDocument Import(Stream input)
The stream from which to import the document.
Returns:A document representation of the imported content.
Overrides: