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

Provides data for mouse button related events.

Definition

Namespace:Telerik.WinControls.Spreadsheet.UI

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class MouseButtonEventArgs : MouseEventArgs

Inheritance: objectEventArgsMouseEventArgsMouseButtonEventArgs

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

Constructors

Creates mouse event data from the specified button, click count, client coordinates, and wheel delta.

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

The mouse button associated with the event.

clicksint

The number of times the button was pressed.

xint

The horizontal client coordinate of the pointer.

yint

The vertical client coordinate of the pointer.

deltaint

The wheel delta associated with the event.

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

C#
public MouseButtonEventArgs(MouseEventArgs args)
Parameters:argsMouseEventArgs

The event data to copy.

Properties

Gets the click count copied from the inherited Clicks value.

C#
public int ClickCount { get; }

Gets or sets whether this input has been handled, which stops parent-element propagation and cancels its routed event.

C#
public bool Handled { get; set; }