共用方式為


Tablet.TabletDevices 屬性

定義

取得與系統關聯的 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

屬性值

與 Tablet PC 關聯的 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

適用於