| Visual Basic (Declaration) | |
|---|---|
Public Event ContextMenuOpen() As ContextMenuOpenEventHandler | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public event ContextMenuOpenEventHandler ContextMenuOpen() | |
The event handler receives an argument of type ContextMenuOpenArgs containing data related to this event. The following ContextMenuOpenArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Cancel | Determines whether the default menu handler should be cancelled. |
| MenuType | Specifies the type of menu that will be opened for this sourceObject. |
| Source | A reference to the object that is opening the menu. |