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

Provides data for mouse button related events.

Definition

Namespace:Telerik.WinControls.RichTextEditor.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class MouseButtonEventArgs : MouseEventArgs

Inheritance: objectEventArgsMouseEventArgsMouseButtonEventArgs

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

Constructors

Initializes mouse event data from the button, click count, pointer location, 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 clicks reported for the event.

xint

The pointer's horizontal coordinate.

yint

The pointer's vertical coordinate.

deltaint

The wheel-rotation delta reported for the event.

Copies the WinForms mouse data from an existing event.

C#
public MouseButtonEventArgs(MouseEventArgs args)
Parameters:argsMouseEventArgs

The mouse data to copy.

Exceptions: NullReferenceException

args is null.

The Handled routing flag is not copied and remains false.

Properties

Gets the click count reported by the inherited WinForms mouse event data.

C#
public int ClickCount { get; }

This property is an alias for the inherited Clicks property.

Gets or sets whether a handler has consumed this input.

C#
public bool Handled { get; set; }

Telerik mouse routing consults this flag to suppress further handling or parent-element bubbling in applicable input paths.