CursorButton.ToString Method
Returns a string that represents the current CursorButton object.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public Overrides Function ToString As String
'Usage
Dim instance As CursorButton
Dim returnValue As String
returnValue = instance.ToString
public override string ToString ()
public:
virtual String^ ToString () override
public String ToString ()
public override function ToString () : String
Not applicable.
Return Value
Returns a string that represents the current CursorButton object.
Remarks
Typical names are Tip Switch, for when the tip of the pen is used, and Barrel Switch, for when the user presses the barrel button on the pen.
Example
This C# example displays the name of the CursorButton object, theCursorButton
, in the TextBox control, theTextBox
.
theTextBox.Text = theCursorButton.ToString();
This Microsoft® Visual Basic® .NET example displays the name of the CursorButton object, theCursorButton
, in the TextBox control, theTextBox
.
theTextBox.Text = theCursorButton.ToString()
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
CursorButton Class
CursorButton Members
Microsoft.Ink Namespace