Поделиться через


Cursor - класс

Обновлен: Ноябрь 2007

Represents general information about a tablet pointing and selecting device.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class Cursor
'Применение
Dim instance As Cursor
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class Cursor
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public ref class Cursor
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust") */
public class Cursor
public class Cursor

Заметки

A Cursor object represents a pointing and selecting device, such as a stylus or a mouse. Physical pens may have multiple tips—such as normal and eraser ends—with each pen tip representing a different Cursor object. A Tablet PC may allow multiple pens. Each cursor has an associated cursor identifier that is unique on a system. For more information about how pens can be used with a Tablet PC, see Pen Input, Ink, and Recognition, Text Input Using the Pen, and Command Input on the Tablet PC.

You can assign specific drawing attributes to a known cursor, such as whether the pen color should be red or blue. A cursor also contains a collection of zero or more CursorButton objects.

Cursors exist only within the scope of an InkCollector object, an InkOverlay object, or an InkPicture control. When one of these objects encounters a new cursor, the object fires an InkCollector.CursorInRange, an InkOverlay.CursorInRange, or an InkPicture.CursorInRange event with the NewCursor property of the InkCollectorCursorInRangeEventArgs object set to true. This allows you to set up properties in the application, such as drawing attributes, when the cursor is first encountered. The InkCollector.Cursors, InkOverlay.Cursors, and InkPicture.Cursors properties contain the collection of cursors that the object or control has encountered.

A Cursor cannot be constructed explicitly. Instead, you obtain a Cursor from either event arguments or the Cursors property of an Microsoft.Ink.InkCollector object, an Microsoft.Ink.InkOverlay object, or an Microsoft.Ink.InkPicture control.

Иерархия наследования

System.Object
  Microsoft.Ink.Cursor

Потокобезопасность

Любые открытые члены этого типа, объявленные как static (Shared в Visual Basic), являются потокобезопасными. Потокобезопасность членов экземпляров не гарантируется.

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

Cursor - члены

Microsoft.Ink - пространство имен

Cursors

InkCollector.CursorInRange

InkOverlay.CursorInRange

InkPicture.CursorInRange

InkCollector.Cursors

InkOverlay.Cursors

InkPicture.Cursors