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

# isRichText

A Boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to apply attributes to specific ranges of text.

## Declaration

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

## Discussion

Discussion Text fields that don’t allow rich text also don’t accept dragged files. By default, text views let the user apply multiple attributes to text, but don’t accept dragged files.

## See Also

### Related Documentation

- [textStorage](appkit/nstextview/textstorage.md)

### Setting behavioral attributes

- [allowsUndo](appkit/nstextview/allowsundo.md)
- [isEditable](appkit/nstextview/iseditable.md)
- [isSelectable](appkit/nstextview/isselectable.md)
- [isFieldEditor](appkit/nstextview/isfieldeditor.md)
- [importsGraphics](appkit/nstextview/importsgraphics.md)
- [setBaseWritingDirection(_:range:)](appkit/nstextview/setbasewritingdirection(_:range:).md)
- [defaultParagraphStyle](appkit/nstextview/defaultparagraphstyle.md)
- [outline(_:)](appkit/nstextview/outline(_:).md)
- [allowsImageEditing](appkit/nstextview/allowsimageediting.md)
- [isAutomaticQuoteSubstitutionEnabled](appkit/nstextview/isautomaticquotesubstitutionenabled.md)
- [toggleAutomaticQuoteSubstitution(_:)](appkit/nstextview/toggleautomaticquotesubstitution(_:).md)
- [isAutomaticLinkDetectionEnabled](appkit/nstextview/isautomaticlinkdetectionenabled.md)
- [toggleAutomaticLinkDetection(_:)](appkit/nstextview/toggleautomaticlinkdetection(_:).md)
- [displaysLinkToolTips](appkit/nstextview/displayslinktooltips.md)
- [isAutomaticTextCompletionEnabled](appkit/nstextview/isautomatictextcompletionenabled.md)
