New to Telerik Document ProcessingStart a free 30-day trial

Imports and exports DOCX (Office Open XML) documents to and from RadFlowDocument instances.

Definition

Constructors

Initializes a new instance of the DocxFormatProvider class.

C#
public DocxFormatProvider()

Properties

Gets a value indicating whether this provider supports exporting documents (always true for DOCX).

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

The value indicating whether can export.

Overrides: FormatProviderBase<RadFlowDocument>.CanExport

Gets a value indicating whether this provider supports importing documents (always true for DOCX).

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

The value indicating whether can import.

Overrides: FormatProviderBase<RadFlowDocument>.CanImport

Gets or sets the settings that control DOCX export behavior, including field updates and validation actions.

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

The export settings.

Gets or sets the settings that control DOCX import behavior, including image and shape handling.

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

The export settings.

Gets the file extensions supported by this provider (.docx).

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

The supported extensions.

Overrides: FormatProviderBase<RadFlowDocument>.SupportedExtensions

Methods

Exports the specified document.

C#
protected override void ExportOverride(RadFlowDocument document, Stream output, CancellationToken cancellationToken)
Parameters:documentRadFlowDocumentoutputStream

The output.

cancellationTokenCancellationToken

The cancellation token used to cancel the operation.

Overrides: FormatProviderBase<RadFlowDocument>.ExportOverride(RadFlowDocument, Stream, CancellationToken)

Imports the specified input.

C#
protected override RadFlowDocument ImportOverride(Stream input, CancellationToken cancellationToken)
Parameters:inputStream

The input.

cancellationTokenCancellationToken

The cancellation token used to cancel the operation.

Returns:

RadFlowDocument

The imported document.

Overrides: FormatProviderBase<RadFlowDocument>.ImportOverride(Stream, CancellationToken)