Proprietà Tablet.Name
Aggiornamento: novembre 2007
Ottiene il nome dell'oggetto Tablet.
Spazio dei nomi: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Sintassi
'Dichiarazione
Public ReadOnly Property Name As String
'Utilizzo
Dim instance As Tablet
Dim value As String
value = instance.Name
public string Name { get; }
public:
property String^ Name {
String^ get ();
}
/** @property */
public String get_Name()
public function get Name () : String
Valore proprietà
Tipo: System.String
Nome dell'oggetto Tablet.
Note
Nota
Se chiamata all'interno di alcuni gestori di messaggi è possibile che questa funzione venga reimmessa, provocando risultati imprevisti. Prestare attenzione per evitare una chiamata rientrante durante la gestione di uno dei messaggi seguenti: WM_ACTIVATE, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_PAINT, WM_SYSCOMMAND se il parametro wParam è impostato su SC_HOTKEY o SC_TASKLIST e WM_SYSKEYDOWN (durante l'elaborazione delle combinazioni di tasti ALT-TAB o ALT-ESC). Questo problema è relativo alle applicazioni con modello di apartment a thread singolo.
Esempi
In questo esempio, l'oggetto ListBoxlistBoxTablets viene compilato con il nome di ogni dispositivo del Tablet PC associato al sistema.
' 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);
}
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