Edit

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

Name Description
TabletDeviceCollection()

Initializes a new instance of the TabletDeviceCollection class.

Properties

Name Description
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

Name Description
CopyTo(TabletDevice[], Int32)

Copies all elements in the current collection to the specified one-dimensional array, starting at the specified destination array index.

Explicit Interface Implementations

Name Description
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.

Applies to