Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DiagramControl.QueryItemDrawAction Event

Fires repeatedly as the end-user hovers over the diagram canvas while a drawing tool (Rectangle, Ellipse, Right Triangle or Hexagon) is selected.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.2.dll

NuGet Package: DevExpress.Win.Diagram

#Declaration

[DiagramCategory(DiagramCategory.DiagramItems)]
public event EventHandler<DiagramQueryItemDrawActionEventArgs> QueryItemDrawAction

#Event Data

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

Property Description
Allow Specifies whether the end-user can use the selected drawing tool.
DiagramPoint Returns the mouse pointer position within the diagram control.
Tool Returns the drawing tool that the end-user is attempting to use.

#Remarks

The Allow property specifies whether the end-user can use the selected drawing tool. The Tool property returns the drawing tool that the end-user is attempting to use.

See Also