Back to Devexpress

DiagramControl.QueryItemsAction Event

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-9c6ad07d.md

latest2.4 KB
Original Source

DiagramControl.QueryItemsAction Event

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

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DiagramCategory(DiagramCategory.DiagramItems)]
public event EventHandler<DiagramQueryItemsActionEventArgs> QueryItemsAction
vb
<DiagramCategory(DiagramCategory.DiagramItems)>
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:

PropertyDescription
ActionIndicates the kind of the action that raised the event.
AllowSpecifies whether to allow the operation.
HighlightedItemReturns the currently highlighted diagram item.
HighlightedItemPointReturns the current coordinates of the cursor.
ItemsReturns 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

DiagramControl Class

DiagramControl Members

DevExpress.XtraDiagram Namespace