TabletDeviceCollection 類別

定義

包含 TabletDevice 物件,這個物件表示 Tablet 裝置的數位板裝置。

public ref class TabletDeviceCollection : System::Collections::ICollection
public class TabletDeviceCollection : System.Collections.ICollection
type TabletDeviceCollection = class
    interface ICollection
    interface IEnumerable
Public Class TabletDeviceCollection
Implements ICollection
繼承
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

建構函式

TabletDeviceCollection()

初始化 TabletDeviceCollection 類別的新執行個體。

屬性

Count

取得集合中 TabletDevice 物件的數目。

IsSynchronized

取得值,這個值會指出是否同步處理對集合的存取 (具備執行緒安全)。

Item[Int32]

取得集合中位於指定索引處的 TabletDevice 物件。

SyncRoot

取得物件,這個物件可以用來對集合進行同步存取。

方法

CopyTo(TabletDevice[], Int32)

從指定之目的陣列索引開始,將目前集合之所有項目複製到指定的一維陣列。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

ICollection.CopyTo(Array, Int32)

這個成員可以支援 .NET Framework,但不建議使用於您的程式碼中。

IEnumerable.GetEnumerator()

這個成員可以支援 .NET Framework,但不建議使用於您的程式碼中。

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於