---
title: InlineTextStyle
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/inlinetextstyle
---

# InlineTextStyle

The object for applying text styling when not using HTML or Markdown formatting.

## Declaration

```data
object InlineTextStyle
```

## Properties

rangeLength: The length (in characters) of the portion of text to which Apple News applies alternative styling. rangeStart: The starting point of the text to which Apple News applies alternative styling. Note: the first available character is at 0, not 1. textStyle: Either a text style object or the name of a TextStyle object defined in the ArticleDocument.textStyles object.

## Mentioned in

Enhancing Your Articles with Styles Defining and Applying Text Styles

## Discussion

Discussion Use an InlineTextStyle object to apply text stylings (such as color, underline, font size, and font weight) to a specific range of text. The InlineTextStyle object contains either a TextStyle object or a reference to a text style that’s been defined in the ArticleDocument.textStyles object. Only properties that have values override the component text style and defaults. You can use this object in Text. Example {   "components": [     {       "role": "pullquote",       "text": "The text of the pullquote.",       "textStyle": "pullquote-medium",       "inlineTextStyles": [         {           "rangeStart": 4,           "rangeLength": 4,           "textStyle": {             "textColor": "#FF0000",             "backgroundColor": "#000"           }         }       ]     }   ] }

## See Also

### Text Styles

- [Defining and Applying Text Styles](applenews/defining-and-applying-text-styles.md)
- [Applying Apple News Format Fonts](applenews/applying-apple-news-format-fonts.md)
- [TextStyle](applenewsformat/textstyle.md)
- [ComponentTextStyle](applenewsformat/componenttextstyle.md)
- [DropCapStyle](applenewsformat/dropcapstyle.md)
- [ListItemStyle](applenewsformat/listitemstyle.md)
