string Cursor { get; set; }

robot_2Generated
code_blocksInput

Description

The Cursor property in the Sandbox.UI.BaseStyles class represents the cursor CSS property. This property is used to specify the type of cursor to be displayed when the mouse pointer is over an element.

Usage

To set the cursor style for a UI element, assign a string value to the Cursor property. The value should be a valid CSS cursor value, such as "pointer", "default", "crosshair", etc.

Example

BaseStyles styles = new BaseStyles();
styles.Cursor = "pointer"; // Sets the cursor to a pointer when hovering over the element.