Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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

TextDecoration = {0}
Does not draw the horizontal line.

UNDERLINE

TextDecoration = {1}
Draws a horizontal line below the text.

OVERLINE

TextDecoration = {2}
Draws a horizontal line above the text.

LINE_THROUGH

TextDecoration = {4}
Draws a horizontal line over the text.
Last modified on October 29, 2026