System.Nullable<Color> FontColor { get; set; }

robot_2Generated
code_blocksInput

Description

The FontColor property in the Sandbox.UI.BaseStyles class represents the font-color CSS property. This property allows you to specify the color of the text within a UI element. It is a nullable property of type Color, meaning it can hold a color value or be set to null if no color is specified.

Usage

To use the FontColor property, you can assign it a Color value to change the text color of a UI element. If you want to remove the color setting, you can set it to null.

Example

// Example of setting the FontColor property
BaseStyles styles = new BaseStyles();
styles.FontColor = new Color(255, 0, 0); // Sets the font color to red

// Example of clearing the FontColor property
styles.FontColor = null; // Removes the font color setting