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


Tablets.DefaultTablet - свойство

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

Gets the default Tablet object of the Tablets collection.

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

Синтаксис

'Декларация
Public ReadOnly Property DefaultTablet As Tablet
'Применение
Dim instance As Tablets
Dim value As Tablet

value = instance.DefaultTablet
public Tablet DefaultTablet { get; }
public:
property Tablet^ DefaultTablet {
    Tablet^ get ();
}
/** @property */
public Tablet get_DefaultTablet()
public function get DefaultTablet () : Tablet

Значение свойства

Тип: Microsoft.Ink.Tablet
The default Tablet object of the Tablets collection.

Заметки

The platform determines the default Tablet object in the following order:

  1. If the system has a digitizer integrated with the display device, this integrated digitizer is considered the default tablet, even if other digitizing tablets are installed.

  2. If more than one digitizing tablet is installed in the system, the first one encountered during initialization is considered the default tablet.

  3. If only one digitizing tablet is installed in the system, it is considered the default tablet.

  4. If no digitizing tablets are installed in the system but there are other pointing devices (such as a mouse or a touch pad) installed that generate mouse messages, those devices in aggregate are considered to be the default tablet.

If no digitizing tablets and no pointing devices are installed in the system, an exception is thrown.

Примеры

This example obtains the default tablet of the Tablets collection, and generates a report string that shows the default tablet name, and whether or not the tablet digitizer is integrated with the display.

Public Function Report_DefaultTablet() As String

    Dim SB As StringBuilder = New StringBuilder(1024)

    Dim defTablet As Tablet = New Tablets().DefaultTablet
    SB.AppendLine("Default tablet")
    SB.AppendLine("Name: " + defTablet.Name)

    If (defTablet.HardwareCapabilities And TabletHardwareCapabilities.Integrated) > 0 Then
        SB.AppendLine("Integrated: YES")
    Else
        SB.AppendLine("Integrated: NO")
    End If

    Return SB.ToString()
End Function
public string Report_DefaultTablet()
{
    StringBuilder SB = new StringBuilder(1024);
    Tablet defTablet = new Tablets().DefaultTablet;
    SB.AppendLine("Default tablet");
    SB.AppendLine("Name: " + defTablet.Name);
    SB.AppendLine("Integrated: " +
        (((defTablet.HardwareCapabilities & TabletHardwareCapabilities.Integrated) > 0) ? "YES" : "NO"));
    return SB.ToString();

}

Платформы

Windows Vista

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

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

.NET Framework

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

См. также

Ссылки

Tablets Класс

Tablets - члены

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

Tablet