Description
The CaretColor
property in the BaseStyles
class represents the caret-color
CSS property. This property is used to specify the color of the text input caret, also known as the text cursor. It is a nullable property of type Color
, allowing you to set a specific color or leave it unset.
Usage
To use the CaretColor
property, you can assign it a Color
value to change the caret color in a text input field. If you do not set this property, the default caret color will be used.
Example
// Example of setting the CaretColor property
var styles = new BaseStyles();
styles.CaretColor = new Color(1.0f, 0.0f, 0.0f); // Sets the caret color to red