Tablet.Name (Propiedad)
Actualización: noviembre 2007
Obtiene el nombre del objeto Tablet.
Espacio de nombres: Microsoft.Ink
Ensamblado: Microsoft.Ink (en Microsoft.Ink.dll)
Sintaxis
'Declaración
Public ReadOnly Property Name As String
'Uso
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
Valor de propiedad
Tipo: System.String
Nombre del objeto Tablet.
Comentarios
Nota
Esta función puede introducirse de nuevo si se llama en determinados controladores de mensajes, lo cual causa resultados inesperados. Asegúrese de evitar que se produzca una llamada reentrante cuando controle alguno de los mensajes siguientes: WM_ACTIVATE, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_PAINT; WM_SYSCOMMAND si wParam se establece en SC_HOTKEY o SC_TASKLIST y WM_SYSKEYDOWN (al procesar las combinaciones de teclas Alt-Tab o Alt-Esc). Este problema se produce con las aplicaciones del modelo de subprocesamiento controlado simple.
Ejemplos
En este ejemplo, el objeto ListBoxlistBoxTablets se rellena con el nombre de cada dispositivo de Tablet PC que está conectado 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);
}
Plataformas
Windows Vista
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
Información de versión
.NET Framework
Compatible con: 3.0