TabletDeviceCollection 類別

定義

包含 TabletDevice 物件,這個物件表示 Tablet 裝置的數位板裝置。Contains the TabletDevice objects that represent the digitizer devices of a tablet device.

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
衍生
實作

範例

下列範例示範 @no__t 0 類別。The following example demonstrates the TabletDeviceCollection class.

// 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 類別的新執行個體。Initializes a new instance of the TabletDeviceCollection class.

屬性

Count

取得集合中 TabletDevice 物件的數目。Gets the number of TabletDevice objects in the collection.

IsSynchronized

取得值,這個值會指出是否同步處理對集合的存取 (具備執行緒安全)。Gets a value that indicates whether access to the collection is synchronized (thread safe).

Item[Int32]

取得集合中位於指定索引處的 TabletDevice 物件。Gets the TabletDevice object at the specified index within the collection.

SyncRoot

取得物件,這個物件可以用來對集合進行同步存取。Gets an object that can be used to synchronize access to the collection.

方法

CopyTo(TabletDevice[], Int32)

從指定之目的陣列索引開始,將目前集合之所有項目複製到指定的一維陣列。Copies all elements in the current collection to the specified one-dimensional array, starting at the specified destination array index.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

ICollection.CopyTo(Array, Int32)

這個成員可以支援 .NET Framework,但不建議使用於您的程式碼中。This member supports the .NET Framework and is not intended to be used from your code.

IEnumerable.GetEnumerator()

這個成員可以支援 .NET Framework,但不建議使用於您的程式碼中。This member supports the .NET Framework and is not intended to be used from your code.

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

適用於