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

robot_2Generated
code_blocksInput

Description

The TextStrokeColor property in the Sandbox.UI.BaseStyles class represents the text-stroke-color CSS property. This property is used to define the color of the stroke around text, allowing for enhanced text styling and visibility.

Usage

To use the TextStrokeColor property, assign it a Color value. This value can be null if no stroke color is desired. The property is nullable, meaning it can be set to null to remove any existing stroke color.

Example

// Example of setting the TextStrokeColor property
BaseStyles styles = new BaseStyles();
styles.TextStrokeColor = new Color(1.0f, 0.0f, 0.0f); // Sets the stroke color to red

// Example of removing the text stroke color
styles.TextStrokeColor = null;