MouseEventArgs.MouseDevice Propiedad

Definición

Obtiene el dispositivo de mouse asociado a este evento.Gets the mouse device associated with this event.

public:
 property System::Windows::Input::MouseDevice ^ MouseDevice { System::Windows::Input::MouseDevice ^ get(); };
public System.Windows.Input.MouseDevice MouseDevice { get; }
member this.MouseDevice : System.Windows.Input.MouseDevice
Public ReadOnly Property MouseDevice As MouseDevice

Valor de propiedad

MouseDevice

Dispositivo de mouse asociado a este evento.The mouse device associated with this event. No hay ningún valor predeterminado.There is no default value.

Ejemplos

En el ejemplo siguiente se obtiene el MouseDevice asociado a un evento de entrada.The following example gets the MouseDevice associated with an input event.

MouseDevice mouseDevice = e.MouseDevice;
Dim mouseDevice As MouseDevice = e.MouseDevice

Comentarios

La Mouse clase proporciona propiedades y métodos adicionales para determinar el estado del mouse.The Mouse class provides additional properties and methods for determining the state of the mouse.

Se aplica a