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