System.Nullable<Length> TextStrokeWidth { get; set; }

robot_2Generated
code_blocksInput

Description

Represents the text-stroke-width CSS property.

Usage

This property is used to define the width of the stroke applied to text. It is a nullable property of type Sandbox.UI.Length, allowing you to specify the stroke width in various units such as pixels, ems, etc. If not set, the default behavior is to have no stroke width.

Example

// Example of setting the TextStrokeWidth property
var styles = new BaseStyles();
styles.TextStrokeWidth = new Length(2, LengthUnit.Pixel); // Sets the text stroke width to 2 pixels

// To remove the stroke width
styles.TextStrokeWidth = null;