Search
DiagramItem.OnClick Method
See Also
 





Invoked when the user clicks this item.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

protected virtual void OnClick (
    MouseButton mouseButton,
    Point mousePosition
)

Visual Basic  Copy Code

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

 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