StylusButton 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示手寫筆上的按鈕。
public ref class StylusButton
C#
public class StylusButton
type StylusButton = class
Public Class StylusButton
- 繼承
-
StylusButton
下列程式代碼會檢查使用者是否按下手寫筆上的滾筒按鈕。
C#
void OnStylusButtonDown(object sender, StylusButtonEventArgs e)
{
StylusButton myStylusButton = e.StylusButton;
if (myStylusButton.Guid == StylusPointProperties.BarrelButton.Id)
{
// the barrel button on the stylus has been pressed
}
}
Private Sub OnStylusButtonDown(ByVal sender As Object, ByVal e As StylusButtonEventArgs)
Dim myStylusButton As StylusButton = e.StylusButton
If myStylusButton.Guid = StylusPointProperties.BarrelButton.Id Then
' the barrel button on the stylus has been pressed
End If
End Sub
Guid |
取得 Guid,表示手寫筆按鈕。 |
Name |
取得手寫筆按鈕的名稱。 |
Stylus |
取得手寫筆按鈕的狀態。 |
Stylus |
取得這個按鈕所屬的手寫筆。 |
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
Get |
做為預設雜湊函式。 (繼承來源 Object) |
Get |
取得目前執行個體的 Type。 (繼承來源 Object) |
Memberwise |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
To |
建立 StylusButton 的字串表示。 |
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |