Fires each time the end-user attempts to perform an action on a diagram item.
[DiagramCategory(DiagramCategory.DiagramItems)] public event EventHandler<DiagramQueryItemsActionEventArgs> QueryItemsAction
<DiagramCategory(DiagramCategory.DiagramItems)> Public Event QueryItemsAction As EventHandler(Of DiagramQueryItemsActionEventArgs)
The QueryItemsAction event's data class is DiagramQueryItemsActionEventArgs. The following properties provide information specific to this event:
|Action||Indicates the kind of the action that raised the event.|
|Allow||Specifies whether to allow performing the operation.|
|HighlightedItem||Returns the currently highlighted diagram item.|
|HighlightedItemPoint||Returns the current coordinates of the cursor.|
|Items||Returns the collection of diagram items affected by the action.|
The event's Items property returns the collection of diagram items on which an action is about to be performed. The action kind is returned by the Action property. You can prohibit the action from being performed by setting the Allow property to false.