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

robot_2Generated
code_blocksInput

Description

The TextLineThroughOffset property in the BaseStyles class represents the text-line-through-offset CSS property. This property allows you to specify the offset of the line-through decoration from its default position, which is typically centered over the text. The offset can be specified using a Length value, which can be a specific unit like pixels, ems, or percentages.

Usage

To use the TextLineThroughOffset property, you can set it to a Length value that defines how far the line-through should be offset from its default position. This can be useful for creating custom text decoration effects.

Example

// Example of setting the TextLineThroughOffset property
var styles = new BaseStyles();
styles.TextLineThroughOffset = new Length(2, LengthUnit.Pixel); // Offset the line-through by 2 pixels