---
title: NSTextLayoutManager.SegmentType.selection
framework: appkit
role: symbol
role_heading: Case
path: appkit/nstextlayoutmanager/segmenttype/selection
---

# NSTextLayoutManager.SegmentType.selection

The segment behavior suitable for selection rendering.

## Declaration

```swift
case selection
```

## Discussion

Discussion This segment type extends the last segment in a line fragment to the trailing edge if continuing to the next line.

## See Also

### Kinds of text selection segments

- [NSTextLayoutManager.SegmentType.highlight](appkit/nstextlayoutmanager/segmenttype/highlight.md)
- [NSTextLayoutManager.SegmentType.standard](appkit/nstextlayoutmanager/segmenttype/standard.md)
