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

robot_2Generated
code_blocksInput

Description

The LetterSpacing property in the BaseStyles class represents the letter-spacing CSS property. This property is used to specify the spacing between the characters in a text. It can be set to a specific length value, which can be positive or negative, to increase or decrease the space between characters.

Usage

To use the LetterSpacing property, you can assign it a value of type Sandbox.UI.Length. This value can be a specific unit like pixels (px), ems (em), or any other CSS length unit. If you want to reset the letter spacing to its default, you can set this property to null.

Example

// Example of setting the LetterSpacing property
var styles = new BaseStyles();
styles.LetterSpacing = new Length(1.5f, LengthUnit.Em); // Sets letter-spacing to 1.5em

// Resetting the letter-spacing to default
styles.LetterSpacing = null;