TabletDeviceCollection.Count 属性

定义

获取集合中 TabletDevice 对象的数量。

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

属性值

集合中 TabletDevice 对象的数目。

实现

示例

以下示例演示 了 Count 属性。

// Get the number of tablet devices
int numTabletDevices = myTabletDeviceCollection.Count;
'  Get the number of tablet devices
Dim numTabletDevices As Integer = myTabletDeviceCollection.Count

适用于