---
title: textSelections
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextlayoutmanager/textselections
---

# textSelections

An array of text selections associated by the text layout manager.

## Declaration

```swift
var textSelections: [NSTextSelection] { get set }
```

## Discussion

Discussion Each NSTextSelection represents an insertion point. The selection state that the framework shares among all viewports connected to the text layout manager through text containers.

## See Also

### Accessing the text storage

- [textContentManager](appkit/nstextlayoutmanager/textcontentmanager.md)
- [textContainer](appkit/nstextlayoutmanager/textcontainer.md)
- [textSelectionNavigation](appkit/nstextlayoutmanager/textselectionnavigation.md)
- [usageBoundsForTextContainer](appkit/nstextlayoutmanager/usageboundsfortextcontainer.md)
- [enumerateTextSegments(in:type:options:using:)](appkit/nstextlayoutmanager/enumeratetextsegments(in:type:options:using:).md)
- [replace(_:)](appkit/nstextlayoutmanager/replace(_:).md)
- [replaceContents(in:with:)](appkit/nstextlayoutmanager/replacecontents(in:with:)-2elb.md)
- [replaceContents(in:with:)](appkit/nstextlayoutmanager/replacecontents(in:with:)-80j0b.md)
