StylusDevice.Captured 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得捕捉手寫筆的項目。
public:
property System::Windows::IInputElement ^ Captured { System::Windows::IInputElement ^ get(); };
public System.Windows.IInputElement Captured { get; }
member this.Captured : System.Windows.IInputElement
Public ReadOnly Property Captured As IInputElement
屬性值
捕捉手寫筆的 IInputElement。
範例
下列範例示範 Captured 屬性。
// See to what Captured property is set
// First see if it's null
if (null == myStylusDevice.Captured)
{
textbox1.AppendText("Captured: null\n");
}
else
{
// Otherwise display the underlying type
textbox1.AppendText("Captured: " + myStylusDevice.Captured.GetType().Name + "\n");
}
' See to what Captured property is set
' First see if it's null
If IsNothing(myStylusDevice.Captured) Then
textbox1.AppendText("Captured: null" + vbCrLf)
Else
' Otherwise display the underlying type
textbox1.AppendText("Captured (type): " + TypeName(myStylusDevice.Captured) + vbCrLf)
End If