System.Nullable<TextDecoration> TextDecorationLine { get; set; }

robot_2Generated
code_blocksInput

Description

The TextDecorationLine property in the BaseStyles class represents the text-decoration-line CSS property. This property is used to specify the type of text decoration to apply to the text content of an element, such as underline, overline, line-through, or a combination of these.

Usage

To use the TextDecorationLine property, you can set it to a value from the TextDecoration enumeration, which includes options like None, Underline, Overline, LineThrough, or combinations thereof. This property is nullable, meaning it can be set to null to indicate no decoration.

Example

// Example of setting the TextDecorationLine property
var styles = new BaseStyles();
styles.TextDecorationLine = TextDecoration.Underline | TextDecoration.LineThrough;