Table of Contents

Class MouseEventArgs

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Provides data for the mouse events.

public class MouseEventArgs : HandledEventArgs
Inheritance
MouseEventArgs

Constructors

MouseEventArgs()

Initializes a new instance of the MouseEventArgs class.

MouseEventArgs(object, object, MouseButton, long, PointD)

Initializes a new instance of the MouseEventArgs class with the specified parameters.

MouseEventArgs(object, object, long, PointD)

Initializes a new instance of the MouseEventArgs class with the specified parameters.

Fields

Empty

Gets initialized MouseEventArgs object.

Properties

Button

Gets which mouse button was pressed.

ButtonState

Read-only access to the button state.

ChangedButton

Read-only access to the button being described.

ClickCount

Same as Clicks.

Clicks

Gets the number of times the mouse button was pressed and released.

CurrentTarget

Gets current target control for the event. Same as Source.

Delta

Gets a signed count of the number of detents the mouse wheel has rotated, multiplied by the WHEEL_DELTA constant. A detent is one notch of the mouse wheel.

LeftButton

The state of the left button.

Location

Gets the location of the mouse during the generating mouse event.

MiddleButton

The state of the middle button.

OriginalTarget

Gets original target control for the event.

RightButton

The state of the right button.

Source

Gets current target control for the event. Same as CurrentTarget.

Timestamp

Gets timestamp of the event.

X

Gets the x-coordinate of the mouse during the generating mouse event.

XButton1

The state of the first extended button.

XButton2

The state of the second extended button.

Y

Gets the y-coordinate of the mouse during the generating mouse event.

Methods

ToString()

Gets string representation of this object.