DiagramControl.QueryItemsAction Event

Fires each time the end-user attempts to perform an action on a diagram item.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v20.1.dll


public event EventHandler<DiagramQueryItemsActionEventArgs> QueryItemsAction
Public Event QueryItemsAction As EventHandler(Of DiagramQueryItemsActionEventArgs)

Event Data

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

Property Description
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.

See Also