StylusDevice.StylusButtons Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the stylus buttons on the stylus.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public StylusButtonCollection StylusButtons { get; }

Property Value

Type: System.Windows.Input.StylusButtonCollection

A reference to a StylusButtonCollection object representing all of the buttons on the stylus.

The following example demonstrates the StylusButtons property.

StylusButtonCollection myStylusButtonCollection = myStylusDevice.StylusButtons;

if (null == myStylusButtonCollection)
    textbox1.AppendText("StylusButtons: null\n");
    textbox1.AppendText("# of StylusButtons == " + myStylusButtonCollection.Count.ToString() + "\n");

.NET Framework
Available since 3.0
Return to top