Description
The Double
field of the TextDecorationStyle
enumeration represents a text decoration style where two solid lines are drawn. This style can be used to apply a double underline or overline to text elements in a UI, similar to the text-decoration-style: double
CSS property.
Usage
To use the Double
text decoration style, assign it to a UI element's text decoration property. This can be useful for emphasizing text in a more pronounced way than a single line.
Example
// Example of using TextDecorationStyle.Double in a UI component
var label = new Label();
label.Text = "Important Text";
label.Style.TextDecoration = TextDecorationStyle.Double;