Tablet.TabletDevices 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 TabletDeviceCollection 与系统关联的值。
public:
static property System::Windows::Input::TabletDeviceCollection ^ TabletDevices { System::Windows::Input::TabletDeviceCollection ^ get(); };
public static System.Windows.Input.TabletDeviceCollection TabletDevices { [System.Security.SecurityCritical] get; }
public static System.Windows.Input.TabletDeviceCollection TabletDevices { get; }
[<get: System.Security.SecurityCritical>]
static member TabletDevices : System.Windows.Input.TabletDeviceCollection
static member TabletDevices : System.Windows.Input.TabletDeviceCollection
Public Shared ReadOnly Property TabletDevices As TabletDeviceCollection
属性值
与 TabletDeviceCollection 平板电脑关联的计算机。
- 属性
示例
下面的示例演示了该 TabletDeviceCollection 属性。
// Get the TabletDevice objects
TabletDeviceCollection myTabletDeviceCollection = Tablet.TabletDevices;
// Display the types of TabletDevices
foreach (TabletDevice td in myTabletDeviceCollection)
{
Console.WriteLine(td.Type);
}
' Get the TabletDevice objects
Dim myTabletDeviceCollection As TabletDeviceCollection = Tablet.TabletDevices
' Display the types of TabletDevices
Dim td As TabletDevice
For Each td In myTabletDeviceCollection
Console.WriteLine(td.Name)
Next