共用方式為


StylusButton.StylusDevice 屬性

定義

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

public:
 property System::Windows::Input::StylusDevice ^ StylusDevice { System::Windows::Input::StylusDevice ^ get(); };
public System.Windows.Input.StylusDevice StylusDevice { get; }
member this.StylusDevice : System.Windows.Input.StylusDevice
Public ReadOnly Property StylusDevice As StylusDevice

屬性值

StylusDevice,表示目前 StylusButton 的手寫筆。

範例

下列範例示範 StylusDevice 屬性。

// Get the name of the StylusDevice to which the StylusButton is attached
textbox1.AppendText("StylusButton.StylusDevice: " + myStylusButton.StylusDevice.Name + "\n");
' Get the name of the StylusDevice to which the StylusButton is attached
textbox1.AppendText("StylusButton.StylusDevice: " + myStylusButton.StylusDevice.Name + vbCrLf)

適用於