Struct TextDecoration
sealed struct TextDecoration
Struct for defining a horizontal line to be drawn on the text.
Multiple decorations can be applied at once. Ex: Underline and overline is UNDERLINE (1) | OVERLINE (2)
For combining decorations, use bitwise OR. For example:
- UNDERLINE (1) | LINE_THROUGH (4) yields 5.
- UNDERLINE (1) | OVERLINE (2) | LINE_THROUGH (4) yields 7. Value more that 7 will be treated as invalid text decoration and no decoration will be applied.
Fields
Constants
NONE
Does not draw the horizontal line.TextDecoration={0}
UNDERLINE
Draws a horizontal line below the text.TextDecoration={1}
OVERLINE
Draws a horizontal line above the text.TextDecoration={2}
LINE_THROUGH
Draws a horizontal line over the text.TextDecoration={4}

