Back to Devexpress

DiagramControl.QueryItemDrawAction Event

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-6c1685e8.md

latest2.1 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DiagramCategory(DiagramCategory.DiagramItems)]
public event EventHandler<DiagramQueryItemDrawActionEventArgs> QueryItemDrawAction
vb
<DiagramCategory(DiagramCategory.DiagramItems)>
Public Event QueryItemDrawAction As EventHandler(Of DiagramQueryItemDrawActionEventArgs)

Event Data

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

PropertyDescription
AllowSpecifies whether the end-user can use the selected drawing tool.
DiagramPointReturns the mouse pointer position within the diagram control.
ToolReturns 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

DiagramControl Class

DiagramControl Members

DevExpress.XtraDiagram Namespace