Redigeeri

Jagamisviis:


TabletDeviceCollection Class

Definition

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
Inheritance
TabletDeviceCollection
Derived
Implements

Examples

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

Constructors

TabletDeviceCollection()

Initializes a new instance of the TabletDeviceCollection class.

Properties

Count

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]

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.

Methods

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.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

This member supports the .NET Framework and is not intended to be used from your code.

IEnumerable.GetEnumerator()

This member supports the .NET Framework and is not intended to be used from your code.

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to