StylusButton.StylusButtonState Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the state of the stylus button.
public:
property System::Windows::Input::StylusButtonState StylusButtonState { System::Windows::Input::StylusButtonState get(); };
public System.Windows.Input.StylusButtonState StylusButtonState { get; }
member this.StylusButtonState : System.Windows.Input.StylusButtonState
Public ReadOnly Property StylusButtonState As StylusButtonState
Property Value
One of the StylusButtonState values.
Examples
The following example demonstrates the StylusButtonState property.
// Get the state of the StylusButton
switch (myStylusButton.StylusButtonState)
{
case StylusButtonState.Down:
textbox1.AppendText("StylusButton.State: Down\n");
break;
default: // StylusButtonState.Up
textbox1.AppendText("StylusButton.State: Up\n");
break;
}
' Get the state of the StylusButton
Select Case myStylusButton.StylusButtonState
Case StylusButtonState.Down
textbox1.AppendText("StylusButton.State: Down" + vbCrLf)
Case Else ' StylusButtonState.Up
textbox1.AppendText("StylusButton.State: Up" + vbCrLf)
End Select
Applies to
Tehke meiega GitHubis koostööd
Selle sisu allika leiate GitHubist, kus saate ka probleeme luua ja läbi vaadata ning päringuid teha. Lisateavet leiate meie kaasautorite juhendist.