windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-6c1685e8.md
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.v25.2.dll
NuGet Package : DevExpress.Win.Diagram
[DiagramCategory(DiagramCategory.DiagramItems)]
public event EventHandler<DiagramQueryItemDrawActionEventArgs> QueryItemDrawAction
<DiagramCategory(DiagramCategory.DiagramItems)>
Public Event QueryItemDrawAction As EventHandler(Of DiagramQueryItemDrawActionEventArgs)
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. |
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