Back to Devexpress

RichEditControl.BeforeExport Event

wpf-devexpress-dot-xpf-dot-richedit-dot-richeditcontrol-ab62f8cb.md

latest2.8 KB
Original Source

RichEditControl.BeforeExport Event

Occurs before the document is saved (exported to a certain format).

Namespace : DevExpress.Xpf.RichEdit

Assembly : DevExpress.Xpf.RichEdit.v25.2.dll

NuGet Package : DevExpress.Wpf.RichEdit

Declaration

csharp
public event BeforeExportEventHandler BeforeExport
vb
Public Event BeforeExport As BeforeExportEventHandler

Event Data

The BeforeExport event's data class is BeforeExportEventArgs. The following properties provide information specific to this event:

PropertyDescription
CustomPropertiesProvides access to the document’s custom properties.
DocumentFormatGets the format of the document being exported or saved.
OptionsProvides access to the exporter options.

Remarks

You can check the Document.RequiredExportCapabilities to be sure that the chosen export format supports them.

The BeforeExport event enables you to adjust the export options as required.

For RTF format, you can specify the RtfDocumentExporterCompatibilityOptions.DuplicateObjectAsMetafile property. For the HTML format, set the location of external content (images, css files) via the IExporterOptions.TargetUri property and specify other HtmlDocumentExporterOptions.

See Also

RequiredExportCapabilities

DocumentSaveOptions

SaveDocument

SaveDocumentAs

RichEditControl Class

RichEditControl Members

DevExpress.Xpf.RichEdit Namespace