CursorShape Cursor { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Cursor property of the Editor.GraphicsItem class specifies the shape of the cursor when it hovers over the graphics item. This property is of type Editor.CursorShape, which defines various cursor shapes that can be used to provide visual feedback to the user.

Usage

To use the Cursor property, you can set it to one of the predefined cursor shapes available in the Editor.CursorShape enumeration. This will change the cursor appearance when the mouse pointer is over the graphics item.

For example, you might want to change the cursor to a hand when the user hovers over a clickable item:

Example

// Assuming 'item' is an instance of Editor.GraphicsItem
item.Cursor = Editor.CursorShape.Hand;