This documentation is archived and is not being maintained.
Tablets.TabletsEnumerator Class
Visual Studio 2008
An implementation of the IEnumerator interface that supports iterating over a Tablets collection.
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
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. Dim allTablets As Tablets = New Tablets() ' clear the list box Me.listBoxTablets.Items.Clear() ' populate the list box with the name of each tablet ' version using GetEnumerator() Dim theTabletsEnumerator As IEnumerator = allTablets.GetEnumerator() While (theTabletsEnumerator.MoveNext()) Dim T As Tablet = theTabletsEnumerator.Current Me.listBoxTablets.Items.Add(T.Name) End While
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.
Show: