Object

TextDecoration

The object for defining color and width for text underline or strikethrough.

Properties

color

Color of the stroke. If omitted, the content’s stroke color will be used (from text color in case the stroke is for underline or strikethrough).

Discussion

Use the TextDecoration object to define a stroke that can be used for strikethrough or underline.

This object can be used in TextStyle and ComponentTextStyle.

Example

{ "componentTextStyles": { "exampleStyle": { "strikethrough": { "color": "#FFC800" }, "underline": { "color": "#FFC800" } } }}

See Also

Text Effects

object TextShadow

The object for creating a text shadow.

object TextShadowOffset

The object for setting an offset value to use with a text shadow.

object TextStrokeStyle

The object for defining the stroke to use for an outline on text.