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


InkOverlay.Cursor - свойство

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

Gets or sets the cursor that appears when the mouse pointer is over the InkPicture control.

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

Синтаксис

'Декларация
<BrowsableAttribute(True)> _
Public Property Cursor As Cursor
'Применение
Dim instance As InkOverlay
Dim value As Cursor

value = instance.Cursor

instance.Cursor = value
[BrowsableAttribute(true)]
public Cursor Cursor { get; set; }
[BrowsableAttribute(true)]
public:
property Cursor^ Cursor {
    Cursor^ get ();
    void set (Cursor^ value);
}
/** @property */
/** @attribute BrowsableAttribute(true) */
public Cursor get_Cursor()
/** @property */
/** @attribute BrowsableAttribute(true) */
public  void set_Cursor(Cursor value)
public function get Cursor () : Cursor
public function set Cursor (value : Cursor)

Значение свойства

Тип: System.Windows.Forms.Cursor
The cursor that appears when the mouse pointer is over the InkPicture control.

Заметки

If set to the default cursor, the inherited Default property, the behavior of the mouse cursor is based on the drawing attributes of the current cursor in view. If you then disable the object while keeping the default cursor setting, the cursor override is disabled and the mouse cursor setting is based on the underlying window's mouse cursor attributes. Setting the cursor to nullссылка null (Nothing в Visual Basic) (Nothing in Microsoft Visual Basic .NET) also disables the object's cursor handling.

If the cursor is set to anything but the default setting, the object always uses that cursor whether or not the object is enabled.

This property refers to the visual display of the pointer, and not the ink input device, which is represented by the Microsoft.Ink.Cursor class.

Примеры

This C# example attaches an InkOverlay, theInkOverlay, to the handle for a control. Both theInkOverlay and the control are assigned Cursors such that when theInkOverlay is enabled, the Default cursor is used, but when theInkOverlay is not enabled, a cross is used as the cursor.

// In the constructor...
theInkOverlay = new InkOverlay(Handle);
theInkOverlay.Cursor = System.Windows.Forms.Cursors.Default;
Cursor = System.Windows.Forms.Cursors.Cross;

This Visual Basic .NET example attaches an InkOverlay, theInkOverlay, to the handle for a control. Both theInkOverlay and the control are assigned Cursors such that when theInkOverlay is enabled, the Default cursor is used, but when theInkOverlay is not enabled, a cross is used as the cursor.

'In New() ...
theInkOverlay = New InkOverlay(Handle)
theInkOverlay.Cursor = System.Windows.Forms.Cursors.Default
Cursor = System.Windows.Forms.Cursors.Cross

Платформы

Windows Vista

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

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

.NET Framework

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

См. также

Ссылки

InkOverlay Класс

InkOverlay - члены

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

InkOverlay.Enabled

System.Windows.Forms.Cursor

System.Windows.Forms.Cursors