---
title: NSTextLayoutManager.SegmentType
framework: uikit
role: symbol
role_heading: Enumeration
path: uikit/nstextlayoutmanager/segmenttype
---

# NSTextLayoutManager.SegmentType

Values that describe the rendering of selection boundaries.

## Declaration

```swift
enum SegmentType
```

## Topics

### Kinds of text selection segments

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

### Initializers

- [init(rawValue:)](uikit/nstextlayoutmanager/segmenttype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Causing layout generation

- [textViewportLayoutController](uikit/nstextlayoutmanager/textviewportlayoutcontroller.md)
- [invalidateLayout(for:)](uikit/nstextlayoutmanager/invalidatelayout(for:).md)
- [textLayoutFragment(for:)](uikit/nstextlayoutmanager/textlayoutfragment(for:)-68dez.md)
- [textLayoutFragment(for:)](uikit/nstextlayoutmanager/textlayoutfragment(for:)-4dhrx.md)
- [ensureLayout(for:)](uikit/nstextlayoutmanager/ensurelayout(for:)-6ptsj.md)
- [ensureLayout(for:)](uikit/nstextlayoutmanager/ensurelayout(for:)-3duae.md)
- [enumerateTextLayoutFragments(from:options:using:)](uikit/nstextlayoutmanager/enumeratetextlayoutfragments(from:options:using:).md)
- [NSTextLayoutManager.SegmentOptions](uikit/nstextlayoutmanager/segmentoptions.md)
