Proprietà Tablet.DeviceKind
Aggiornamento: novembre 2007
Ottiene il valore TabletDeviceKind che indica il tipo di dispositivo del Tablet PC.
Spazio dei nomi: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Sintassi
'Dichiarazione
Public ReadOnly Property DeviceKind As TabletDeviceKind
'Utilizzo
Dim instance As Tablet
Dim value As TabletDeviceKind
value = instance.DeviceKind
public TabletDeviceKind DeviceKind { get; }
public:
property TabletDeviceKind DeviceKind {
TabletDeviceKind get ();
}
/** @property */
public TabletDeviceKind get_DeviceKind()
public function get DeviceKind () : TabletDeviceKind
Valore proprietà
Tipo: Microsoft.Ink.TabletDeviceKind
Valore TabletDeviceKind che indica il tipo di dispositivo del Tablet PC.
Note
Si tratta di una proprietà nuova della versione 6.0 dell'assembly Microsoft.Ink.
Esempi
In questo esempio, l'oggetto Button, btOpenFile può disporre di dimensioni diverse, a seconda del tipo di dispositivo del Tablet PC utilizzato.
Private Sub AdjustInterface(ByVal theTablet As Tablet)
Select Case theTablet.DeviceKind
Case TabletDeviceKind.Mouse
btOpenFile.Size = New Size(24, 24)
Case TabletDeviceKind.Pen
btOpenFile.Size = New Size(32, 32)
Case TabletDeviceKind.Touch
btOpenFile.Size = New Size(48, 48)
End Select
End Sub
private void AdjustInterface(Tablet theTablet)
{
switch (theTablet.DeviceKind)
{
case TabletDeviceKind.Mouse:
btOpenFile.Size = new Size(24, 24);
break;
case TabletDeviceKind.Pen:
btOpenFile.Size = new Size(32, 32);
break;
case TabletDeviceKind.Touch:
btOpenFile.Size = new Size(48, 48);
break;
}
}
Piattaforme
Windows Vista
.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.
Informazioni sulla versione
.NET Framework
Supportato in: 3.0