CursorButton Class

CursorButton Class

Represents general information about a button on a tablet pointing and selecting device.


Visual Basic .NET Public Class CursorButton
Inherits Object
C# public class CursorButton : Object
Managed C++ public __gc class CursorButton : public Object

Members Table

The following table lists the members exposed by the object.


Method Description
Equals Leave Site Determines whether two Object Leave Site instances are equal. Inherited from Object Leave Site.
Finalize Leave Site Allows an Object Leave Site to attempt to free resources and perform other cleanup operations before the Object Leave Site is reclaimed by garbage collection. Inherited from Object Leave Site.
GetHashCode Leave Site Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. Inherited from Object Leave Site.
GetType Leave Site Gets the Type Leave Site of the current instance. Inherited from Object Leave Site.
MemberwiseClone Leave Site Creates a shallow copy of the current Object Leave Site. Inherited from Object Leave Site.
static (Shared in Visual Basic .NET)ReferenceEquals Leave Site Determines whether the specified Object Leave Site instances are the same instance. Inherited from Object Leave Site.
ToString Returns a string that represents the current CursorButton object.


Property Description
Id Gets the identifier of the CursorButton object.
Name Gets the name of the CursorButton object.
State Gets the state of the CursorButton object.

Inheritance Hierarchy

Object Leave Site



A Cursor can contain zero to 32 associated buttons, and each button is provided to an application as a CursorButton object. Examples of cursor buttons are:

  • The writing end of a pen
  • The inverted (or "eraser") end of a pen
  • The barrel of a pen
  • The button on a pen

A single pen cursor with no barrel may consist of two cursor buttons: the writing end and the inverted end. Each button can have a specific function, and an application must know which button, by identifier, is being used before it can accept input from the cursor. For example, an application must know the identifier of the inverted end of the pen before strokes can be erased.

Class Information

Namespace Microsoft.Ink
Assembly Microsoft.Ink (
Strong Name Microsoft.Ink, Version=1.7.4009.0, Culture=neutral, PublicKeyToken=a2870d9cc4d021c8

See Also