TabletDeviceCollection Classe

Definição

Contém os TabletDevice objetos que representam os dispositivos digitalizadores de um 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
Herança
TabletDeviceCollection
Derivado
Implementações

Exemplos

O exemplo seguinte demonstra a TabletDeviceCollection classe.

// 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

Construtores

Name Description
TabletDeviceCollection()

Inicializa uma nova instância da TabletDeviceCollection classe.

Propriedades

Name Description
Count

Obtém o número de TabletDevice objetos na coleção.

IsSynchronized

Recebe um valor que indica se o acesso à coleção está sincronizado (thread safe).

Item[Int32]

Obtém o TabletDevice objeto no índice especificado dentro da coleção.

SyncRoot

Obtém um objeto que pode ser usado para sincronizar o acesso à coleção.

Métodos

Name Description
CopyTo(TabletDevice[], Int32)

Copia todos os elementos da coleção atual para o array unidimensional especificado, começando no índice do array de destino especificado.

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.

(Herdado de Object)
GetHashCode()

Serve como função de hash predefinida.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do atual Object.

(Herdado de Object)
ToString()

Devolve uma cadeia que representa o objeto atual.

(Herdado de Object)

Implementações de Interface Explícita

Name Description
ICollection.CopyTo(Array, Int32)

Este membro suporta o .NET Framework e não se destina a ser usado a partir do seu código.

IEnumerable.GetEnumerator()

Este membro suporta o .NET Framework e não se destina a ser usado a partir do seu código.

Métodos da Extensão

Name Description
AsParallel(IEnumerable)

Permite a paralelização de uma consulta.

AsQueryable(IEnumerable)

Converte um IEnumerable para um IQueryable.

Cast<TResult>(IEnumerable)

Conjura os elementos de an IEnumerable para o tipo especificado.

OfType<TResult>(IEnumerable)

Filtra os elementos de um IEnumerable com base num tipo especificado.

Aplica-se a