New to Telerik UI for WinForms? Start a free 30-day trial

Provides data for mouse button related events.

Definition

Namespace:Telerik.WinControls.UI.Diagrams

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class MouseButtonEventArgs : MouseEventArgs

Inheritance: objectEventArgsMouseEventArgsMouseButtonEventArgs

Inherited Members MouseEventArgs.ButtonMouseEventArgs.ClicksMouseEventArgs.XMouseEventArgs.YMouseEventArgs.DeltaMouseEventArgs.LocationEventArgs.Empty...

Constructors

Creates event data from the mouse-button values supplied by a WinForms mouse event.

C#
public MouseButtonEventArgs(MouseButtons button, int clicks, int x, int y, int delta)
Parameters:buttonMouseButtons

The mouse button that generated the event.

clicksint

The number of times the button was clicked.

xint

The horizontal mouse coordinate.

yint

The vertical mouse coordinate.

deltaint

The mouse-wheel delta, if applicable.

Copies the button, click count, coordinates, and wheel delta from an existing WinForms mouse event.

C#
public MouseButtonEventArgs(MouseEventArgs args)
Parameters:argsMouseEventArgs

The mouse event whose values are copied.

Properties

Gets the inherited mouse-event click count.

C#
public int ClickCount { get; }

Gets or sets whether diagram mouse-event routing should stop at this element.

C#
public bool Handled { get; set; }

When set by a handler, parent notifications stop and the routed mouse event is canceled.