Поделиться через


Tablets - класс

Обновлен: Ноябрь 2007

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

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class Tablets _
    Implements ICollection, IEnumerable
'Применение
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
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust") */
public class Tablets implements ICollection, 
    IEnumerable
public class Tablets implements ICollection, IEnumerable

Заметки

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

Примеры

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);
}

Иерархия наследования

System.Object
  Microsoft.Ink.Tablets

Потокобезопасность

Любые открытые члены этого типа, объявленные как static (Shared в Visual Basic), являются потокобезопасными. Потокобезопасность членов экземпляров не гарантируется.

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

Tablets - члены

Microsoft.Ink - пространство имен

Tablet

Microsoft.Ink.Tablets.TabletsEnumerator