---
title: characters
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextstorage/characters
---

# characters

The text storage contents as an array of characters.

## Declaration

```swift
var characters: [NSTextStorage] { get set }
```

## Discussion

Discussion Unless you’re dealing with scriptability, you shouldn’t use or modify this property directly. For indexed access to characters, use NSAttributedString’s length method to access the string, and NSString’s character(at:) method to access the individual characters.

## See Also

### Accessing scriptable properties

- [attributeRuns](appkit/nstextstorage/attributeruns.md)
- [paragraphs](appkit/nstextstorage/paragraphs.md)
- [words](appkit/nstextstorage/words.md)
- [font](appkit/nstextstorage/font.md)
- [foregroundColor](appkit/nstextstorage/foregroundcolor.md)
