Search
DiagramItem.OnClick Method
See Also
 





Invoked when the user clicks this item.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

protected virtual void OnClick (
    MouseButton mouseButton,
    PointF mousePosition
)

Visual Basic  Copy Code

Protected Overridable Sub OnClick( _
    mouseButton As MouseButton, _
    mousePosition As PointF _
)

 Parameters

mouseButton

Specifies the mouse button used to click the item.

mousePosition

Specifies the mouse position.

 Remarks

Implement this method in a custom item class if you need to detect clicks without handling events of the Diagram class.

 See Also