TabletDeviceCollection TabletDeviceCollection TabletDeviceCollection TabletDeviceCollection Class

定义

包含表示 Tablet 设备的数字化仪设备的 TabletDevice 对象。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
继承
TabletDeviceCollectionTabletDeviceCollectionTabletDeviceCollectionTabletDeviceCollection
派生
实现

示例

下面的示例演示TabletDeviceCollection类。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() TabletDeviceCollection() TabletDeviceCollection()

初始化 TabletDeviceCollection 类的新实例。Initializes a new instance of the TabletDeviceCollection class

属性

Count Count Count Count

获取集合中 TabletDevice 对象的数量。Gets the number of TabletDevice objects in the collection.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

获取一个值,该值指示对集合的访问是否同步(线程安全)。Gets a value that indicates whether access to the collection is synchronized (thread safe).

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取集合中指定索引处的 TabletDevice 对象。Gets the TabletDevice object at the specified index within the collection.

SyncRoot SyncRoot SyncRoot SyncRoot

获取可用于同步对集合的访问的对象。Gets an object that can be used to synchronize access to the collection.

方法

CopyTo(TabletDevice[], Int32) CopyTo(TabletDevice[], Int32) CopyTo(TabletDevice[], Int32) 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) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

显式界面实现

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

该成员支持 .NET Framework 且不应在代码中使用。This member supports the .NET Framework and is not intended to be used from your code.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

该成员支持 .NET Framework 且不应在代码中使用。This member supports the .NET Framework and is not intended to be used from your code.

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于