Sdílet prostřednictvím


Tablet.Name Property

Gets the name of the Tablet object.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public ReadOnly Property Name As String
'Usage
Dim instance As Tablet 
Dim value As String 

value = instance.Name
public string Name { get; }
public:
property String^ Name {
    String^ get ();
}
public function get Name () : String

Property Value

Type: System.String
The name of the Tablet object.

Remarks

Note

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.

Examples

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);
}

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Tablet Class

Tablet Members

Microsoft.Ink Namespace