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

robot_2Generated
code_blocksInput

Description

The TextDecorationColor property in the Sandbox.UI.BaseStyles class represents the text-decoration-color CSS property. This property allows you to specify the color of text decorations such as underlines, overlines, and line-throughs.

Usage

To use the TextDecorationColor property, assign it a Color value. This value can be any valid color representation, such as a named color, a hexadecimal color code, or an RGB/RGBA value. The property is nullable, meaning it can be set to null to remove any specific text decoration color, allowing it to inherit the default or parent color.

Example

// Example of setting the TextDecorationColor property
BaseStyles styles = new BaseStyles();
styles.TextDecorationColor = Color.Red; // Sets the text decoration color to red

// Example of removing the text decoration color
styles.TextDecorationColor = null; // Resets to default behavior, inheriting color