DocxFormatProvider
Imports and exports DOCX (Office Open XML) documents to and from RadFlowDocument instances.
Definition
Namespace:Telerik.Windows.Documents.Flow.FormatProviders.Docx
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public class DocxFormatProvider : BinaryFormatProviderBase<RadFlowDocument>, IFormatProvider<RadFlowDocument>, IBinaryFormatProvider<RadFlowDocument>
Inheritance: objectFormatProviderBase<RadFlowDocument>BinaryFormatProviderBase<RadFlowDocument>DocxFormatProvider
Implements:
Inherited Members
Constructors
Initializes a new instance of the DocxFormatProvider class.
public DocxFormatProvider()
Properties
Gets a value indicating whether this provider supports exporting documents (always true for DOCX).
public override bool CanExport { get; }
The value indicating whether can export.
Overrides:
Gets a value indicating whether this provider supports importing documents (always true for DOCX).
public override bool CanImport { get; }
The value indicating whether can import.
Overrides:
Gets or sets the settings that control DOCX export behavior, including field updates and validation actions.
public DocxExportSettings ExportSettings { get; set; }
The export settings.
Gets or sets the settings that control DOCX import behavior, including image and shape handling.
public DocxImportSettings ImportSettings { get; set; }
The export settings.
Gets the file extensions supported by this provider (.docx).
public override IEnumerable<string> SupportedExtensions { get; }
The supported extensions.
Overrides:
Methods
Exports the specified document.
protected override void ExportOverride(RadFlowDocument document, Stream output, CancellationToken cancellationToken)
The output.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Overrides:
Imports the specified input.
protected override RadFlowDocument ImportOverride(Stream input, CancellationToken cancellationToken)
The input.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Returns:The imported document.
Overrides: