StylusButtonState Enum
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.
Represents the state of a StylusButton.
public enum class StylusButtonState
public enum StylusButtonState
type StylusButtonState =
Public Enum StylusButtonState
- Inheritance
Fields
Name | Value | Description |
---|---|---|
Up | 0 | The button is up. |
Down | 1 | The button is pressed down. |
Examples
The following example demonstrates how to determine the state of a StylusButton.
// 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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.