OleDocumentBox.OnOleDocumentEvent

Syntax

Sub OnOleDocumentEvent(Sender: IOleDocumentBox; Args: IOleDocumentBoxEventArgs);

Begin

//set of operators;

End Sub OnOleDocumentEvent;

Parameters

Sender - parameter that returns the component that has generated the event.

Args - parameter that enables the user to determine event parameters.

Description

The OnOleDocumentEvent event occurs when any event of the object loaded in the OleDocumentBox component is executed.

Comments

This event is used to handle the events of the objects loaded in OleDocumentBox. The event is generated if the EnableDocumentEvents property is set to True.

Example

The event use is given in description of the IOleDocumentBoxEventArgs.DispId property.

See also:

OleDocumentBox