Skip to main content

DiagramControl.QueryItemsAction Event

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

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v23.2.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

[DiagramCategory(DiagramCategory.DiagramItems)]
public event EventHandler<DiagramQueryItemsActionEventArgs> QueryItemsAction

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

Remarks

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