MouseEventArgs.StylusDevice Property


Gets the stylus device associated with this event.

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

Property Value

The stylus associated with this event. There is no default value.


The following example shows how to retrieve the StylusDevice associated with an event.

StylusDevice stylusDevice = e.StylusDevice;
Dim stylusDevice As StylusDevice = e.StylusDevice

Applies to