---
title: isRichText
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstext/isrichtext
---

# isRichText

A Boolean that controls whether the receiver allows the user to apply attributes to specific ranges of the text.

## Declaration

```swift
var isRichText: Bool { get set }
```

## Discussion

Discussion If flag is true the receiver allows the user to apply attributes to specific ranges of the text; if flag is false it doesn’t.

## See Also

### Setting behavioral attributes

- [isEditable](appkit/nstext/iseditable.md)
- [isSelectable](appkit/nstext/isselectable.md)
- [isFieldEditor](appkit/nstext/isfieldeditor.md)
- [importsGraphics](appkit/nstext/importsgraphics.md)
