Sdílet prostřednictvím


CursorButton Class

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

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

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class CursorButton
'Usage
Dim instance As CursorButton
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class CursorButton
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public ref class CursorButton
public class CursorButton

Remarks

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.

Inheritance Hierarchy

System.Object
  Microsoft.Ink.CursorButton

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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 Members

Microsoft.Ink Namespace

Cursor.Buttons

CursorButtons