StylusButton 類別

定義

表示手寫筆上的按鈕。

public ref class StylusButton
public class StylusButton
type StylusButton = class
Public Class StylusButton
繼承
StylusButton

範例

下列程式代碼會檢查使用者是否按下手寫筆上的滾筒按鈕。

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

取得手寫筆按鈕的名稱。

StylusButtonState

取得手寫筆按鈕的狀態。

StylusDevice

取得這個按鈕所屬的手寫筆。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

建立 StylusButton 的字串表示。

適用於