---
title: NSTextHighlightStyle
framework: uikit
role: symbol
role_heading: Type Alias
path: uikit/nstexthighlightstyle
---

# NSTextHighlightStyle

Constants that specify the type of highlight to apply to text.

## Declaration

```occ
typedef NSString * NSTextHighlightStyle;
```

## Overview

Overview Use an NSTextHighlightStyle structure as the value of the NSTextHighlightStyleAttributeName attribute. That attribute applies a highlight to the text to emphasize it. The highlight contributes a background color and a contrasting foreground color to the text.

## Topics

### Getting the highlight styles

- [NSTextHighlightStyleDefault](uikit/nstexthighlightstyledefault.md)

## See Also

### Getting text content attributes

- [TextKit string attribute keys](uikit/textkit-string-attribute-keys.md)
- [NSTextHighlightColorScheme](uikit/nstexthighlightcolorscheme.md)
- [NSTextEffectStyle](uikit/nstexteffectstyle.md)
- [NSUnderlineStyle](uikit/nsunderlinestyle.md)
- [NSWritingDirectionFormatType](uikit/nswritingdirectionformattype.md)
