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.
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.
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.
BaseStyles styles = new BaseStyles(); styles.Cursor = "pointer"; // Sets the cursor to a pointer when hovering over the element.