This documentation is archived and is not being maintained.

Tablets.TabletsEnumerator Class

An implementation of the IEnumerator interface that supports iterating over a Tablets collection.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class TabletsEnumerator : IEnumerator

This example uses the IEnumerator for the Tablets collection to iterate over the Tablets collection, allTablets, and populate the ListBox object listBoxTablets with the names of each tablet device that is attached to the system.

// Calling the constructor automatically fills the  
// Tablets collection with the available Tablet objects.
Tablets allTablets = new Tablets();

// clear the list box 

// populate the list box with the name of each tablet 
// version using GetEnumerator()
IEnumerator theTabletsEnumerator = allTablets.GetEnumerator();
while (theTabletsEnumerator.MoveNext())
    Tablet T = (Tablet)theTabletsEnumerator.Current;


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0