Share via


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 override function ToString() : String

Return Value

Type: System.String
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.

Examples

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 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

CursorButton Class

CursorButton Members

Microsoft.Ink Namespace