Stylus::CurrentStylusDevice Property
.NET Framework (current version)
Gets the stylus that represents the stylus currently in use.
Assembly: PresentationCore (in PresentationCore.dll)
public: property StylusDevice^ CurrentStylusDevice { [SecurityCriticalAttribute] static StylusDevice^ get(); }
Property Value
Type: System.Windows.Input::StylusDevice^The StylusDevice that represents the stylus currently in use.
The following example demonstrates how to erase the text that is selected with an inverted stylus. This example assumes that there is a TextBox called textBox1 and that the StylusUpEvent event is connected to the event handler.
.NET Framework
Available since 3.0
Available since 3.0
Show: