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