Description
The TextDecorationStyle
enumeration provides a set of predefined styles for text decoration, which can be used to specify the appearance of text decorations such as underlines, overlines, and line-throughs in UI elements. This enumeration is part of the Sandbox.UI
namespace and is used to define the style of the line drawn for text decoration.
Usage
To use the TextDecorationStyle
enumeration, you can assign one of its values to a property that accepts text decoration styles. For example, you might use it to set the style of an underline in a UI component.
Example
// Example of using TextDecorationStyle in a UI component
var label = new Label();
label.Text = "Hello, World!";
label.Style.TextDecoration = TextDecorationStyle.Solid; // Apply a solid underline style