TabletDeviceCollection Класс
Определение
Содержит объекты 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
- Наследование
-
TabletDeviceCollection
- Производный
- Реализации
Примеры
В следующем примере показан 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.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() |
Возвращает объект Type для текущего экземпляра.Gets 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 в объект IQueryable.Converts an IEnumerable to an IQueryable. |