MouseEventArgs Members

MouseEventArgs Members

Provides data for mouse-related events such as MouseEnter and MouseMove.

The following tables list the members exposed by the MouseEventArgs type.

  Name Description
Public method MouseEventArgs Overloaded. Initializes a new instance of the MouseEventArgs class.

  Name Description
Public property Device  Gets the input device that initiated this event.(inherited from InputEventArgs)
Public property Handled  Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. (inherited from RoutedEventArgs)
Public property LeftButton Gets the current state of the left mouse button.
Public property MiddleButton Gets the current state of the middle mouse button.
Public property MouseDevice Gets the mouse device associated with this event.
Public property OriginalSource  Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.(inherited from RoutedEventArgs)
Public property RightButton Gets the current state of the right mouse button.
Public property RoutedEvent  Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. (inherited from RoutedEventArgs)
Public property Source  Gets or sets a reference to the object that raised the event. (inherited from RoutedEventArgs)
Public property StylusDevice Gets the stylus device associated with this event.
Public property Timestamp  Gets the time when this event occurred. (inherited from InputEventArgs)
Public property XButton1 Gets the current state of the first extended mouse button.
Public property XButton2 Gets the state of the second extended mouse button.

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetPosition Returns the position of the mouse pointer relative to the specified element.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method InvokeEventHandler Overridden. Calls the type-specific handler on the target.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method OnSetSource  When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes. (inherited from RoutedEventArgs)

Community Additions

© 2016 Microsoft