Tablet.Name - свойство
Обновлен: Ноябрь 2007
Gets the name of the Tablet object.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public ReadOnly Property Name As String
'Применение
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
Значение свойства
Тип: System.String
The name of the Tablet object.
Заметки
Примечание. |
---|
This function can be re-entered if called within certain message handlers, causing unexpected results. Take care to avoid a reentrant call when handling any of the following messages: WM_ACTIVATE, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_PAINT; WM_SYSCOMMAND if wParam is set to SC_HOTKEY or SC_TASKLIST; and WM_SYSKEYDOWN (when processing Alt-Tab or Alt-Esc key combinations). This is an issue with single-threaded apartment model applications. |
Примеры
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);
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0