---
title: TextShadowOffset
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/textshadowoffset
---

# TextShadowOffset

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

## Declaration

```data
object TextShadowOffset
```

## Properties

x: The x offset, as a value between -50.0 and 50.0. Implementation is device dependent. y: The y offset, as a value between -50.0 and 50.0. Implementation is device dependent.

## Discussion

Discussion Use the Offset object to define an offset. A positive x value moves the content to the left, and a negative x value moves the content to the right. A positive y value moves the content up, and a negative y value moves the content down. Example {   "componentTextStyles": {     "exampleStyle": {       …       "textShadow": {         "radius": 5,         "opacity": 0.7,         "color": "#333",         "offset": {           "x": -2,           "y": 2         }       },       "fontSize": 30     }   } }

## See Also

### Text Effects

- [TextShadow](applenewsformat/textshadow.md)
- [TextStrokeStyle](applenewsformat/textstrokestyle.md)
- [TextDecoration](applenewsformat/textdecoration.md)
