<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextLayoutManager/SegmentType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSTextLayoutManagerSegmentType"
  },
  "title" : "NSTextLayoutManager.SegmentType"
}
-->

# NSTextLayoutManager.SegmentType

Values that describe the rendering of selection boundaries.

```
enum SegmentType
```

## Topics

### Kinds of text selection segments

[`case highlight`](/documentation/AppKit/NSTextLayoutManager/SegmentType/highlight)

The segment behavior suitable for highlighting.

[`case selection`](/documentation/AppKit/NSTextLayoutManager/SegmentType/selection)

The segment behavior suitable for selection rendering.

[`case standard`](/documentation/AppKit/NSTextLayoutManager/SegmentType/standard)

The standard segment, matching the typographic bounds of the range.

### Initializers

[`init?(rawValue: Int)`](/documentation/AppKit/NSTextLayoutManager/SegmentType/init(rawValue:))

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)