Share via


Tablets Class

Contains the Tablet objects that represent the hardware-specific properties of all tablets that are attached to the system.

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

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class Tablets _
    Implements ICollection, IEnumerable
'Usage
Dim instance As Tablets
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class Tablets : ICollection, IEnumerable
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public ref class Tablets : ICollection, 
    IEnumerable
public class Tablets implements ICollection, IEnumerable

Remarks

You can query all of the Tablet objects within the collection regarding their functionality.

Examples

In this example, the ListBox object listBoxTablets is populated with the name 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 For Each 
For Each T As Tablet In allTablets
    Me.listBoxTablets.Items.Add(T.Name)
Next
// Calling the constructor automatically fills the  
// Tablets collection with the available Tablet objects.
Tablets allTablets = new Tablets();

// clear the list box 
this.listBoxTablets.Items.Clear();

// populate the list box with the name of each tablet 
// version using foreach 
foreach (Tablet T in allTablets)
{
    this.listBoxTablets.Items.Add(T.Name);
}

Inheritance Hierarchy

System.Object
  Microsoft.Ink.Tablets

Thread Safety

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

Platforms

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.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Tablets Members

Microsoft.Ink Namespace

Tablet

Microsoft.Ink.Tablets.TabletsEnumerator