Back to Devexpress

IRichEditDocumentServer.BeforeImport Event

officefileapi-devexpress-dot-xtrarichedit-dot-iricheditdocumentserver-dad53e87.md

latest1.9 KB
Original Source

IRichEditDocumentServer.BeforeImport Event

Occurs before a document is loaded (imported from an external source).

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
event BeforeImportEventHandler BeforeImport
vb
Event BeforeImport As BeforeImportEventHandler

Event Data

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

PropertyDescription
DocumentFormatGets the format of the document being loaded.
OptionsProvides access to the importer options.

Remarks

The BeforeImport event enables you to adjust the importer options as required.

See the RichEditControl.BeforeImport article for an example of use.

See Also

DocumentLoaded

LoadDocument

IRichEditDocumentServer Interface

IRichEditDocumentServer Members

DevExpress.XtraRichEdit Namespace