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

robot_2Generated
code_blocksInput

Description

The TextUnderlineOffset property in the BaseStyles class represents the text-underline-offset CSS property. This property allows you to specify the distance of the underline from its original position, which can be useful for adjusting the appearance of underlined text in your UI.

Usage

To use the TextUnderlineOffset property, you can set it to a Length value, which can be a specific unit like pixels (px), ems (em), or percentages (%). This property is nullable, meaning it can be set to null if you want to remove any previously set offset.

Example

// Example of setting the TextUnderlineOffset property
var styles = new BaseStyles();
styles.TextUnderlineOffset = new Length(2, LengthUnit.Pixel); // Sets the underline offset to 2 pixels

// To remove the underline offset
styles.TextUnderlineOffset = null;