Description
The Dotted
field of the TextDecorationStyle
enumeration represents a text decoration style that draws a dotted line. This style can be used to apply a dotted underline or overline to text elements in a user interface, similar to the CSS text-decoration-style
property.
Usage
To use the Dotted
style, assign it to a text element's decoration property. This is typically done in the context of UI styling where you want to visually distinguish text with a dotted line.
Example
// Example of using TextDecorationStyle.Dotted in a UI component
var label = new Label();
label.Text = "This is a dotted text decoration example.";
label.Style.TextDecorationStyle = TextDecorationStyle.Dotted;