Partager via


CursorButton.ToString Method

CursorButton.ToString Method

Returns a string that represents the current CursorButton object.

Definition

Visual Basic .NET Overrides Public Function ToString() As String
C# public override string ToString();
Managed C++ public: String* ToString();

Return Value

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

[C#]

This C# example displays the name of the CursorButton object, theCursorButton, in the TextBox Leave Site control, theTextBox.

theTextBox.Text = theCursorButton.ToString();
                

[VB.NET]

This Microsoft® Visual Basic® .NET example displays the name of the CursorButton object, theCursorButton, in the TextBox Leave Site control, theTextBox.

theTextBox.Text = theCursorButton.ToString()