---
title: upstreamAffinity
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nstextlayoutmanager/segmentoptions/upstreamaffinity
---

# upstreamAffinity

Returns the value that causes the framework to the place the segment based on the upstream affinity for an empty range.

## Declaration

```swift
static var upstreamAffinity: NSTextLayoutManager.SegmentOptions { get }
```

## See Also

### Getting segment options

- [headSegmentExtended](appkit/nstextlayoutmanager/segmentoptions/headsegmentextended.md)
- [middleFragmentsExcluded](appkit/nstextlayoutmanager/segmentoptions/middlefragmentsexcluded.md)
- [rangeNotRequired](appkit/nstextlayoutmanager/segmentoptions/rangenotrequired.md)
- [tailSegmentExtended](appkit/nstextlayoutmanager/segmentoptions/tailsegmentextended.md)
