---
title: TextDecoration
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/textdecoration
---

# TextDecoration

The object for defining color for text underline or strikethrough.

## Declaration

```data
object TextDecoration
```

## Properties

color: Color of the stroke. If you omit this property, Apple News uses the content’s stroke color from the text color  for underline or strikethrough.

## Discussion

Discussion Use the TextDecoration object to define a stroke for strikethrough or underline. You can use this object in TextStyle and ComponentTextStyle. Example {   "componentTextStyles": {     "exampleStyle": {       …       "strikethrough": {         "color": "#FFC800"       },       "underline": {         "color": "#FFC800"       }     }   } }

## See Also

### Text Effects

- [TextShadow](applenewsformat/textshadow.md)
- [TextShadowOffset](applenewsformat/textshadowoffset.md)
- [TextStrokeStyle](applenewsformat/textstrokestyle.md)
