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

Gets or sets changed button.

ClickCount

Same as Clicks.

Clicks

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

CurrentTarget

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

Delta

Gets or sets a signed count of the number of detents the mouse wheel has rotated.

DeviceType

Gets or sets device type which raised the event.

LeftButton

The state of the left button.

Location

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

MiddleButton

The state of the middle button.

OriginalTarget

Gets or sets original target control for the event.

RightButton

The state of the right button.

Source

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

Timestamp

Gets or sets 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.