---
title: anchorPositionOffset
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextselection/anchorpositionoffset
---

# anchorPositionOffset

Represents the anchor position offset from the beginning of a line fragment in the visual order for the initial tap or click location.

## Declaration

```swift
var anchorPositionOffset: CGFloat { get set }
```

## Discussion

Discussion That starts from the left for a horizontal line fragment, and from the top for a vertical. Navigating between lines uses this point when the current line fragment associated with the selection is shorter than the next line visited. Defaults to 0.0.

## See Also

### Characteristics of a selection

- [affinity](appkit/nstextselection/affinity-swift.property.md)
- [NSTextSelection.Affinity](appkit/nstextselection/affinity-swift.enum.md)
- [granularity](appkit/nstextselection/granularity-swift.property.md)
- [NSTextSelection.Granularity](appkit/nstextselection/granularity-swift.enum.md)
- [isLogical](appkit/nstextselection/islogical.md)
- [isTransient](appkit/nstextselection/istransient.md)
- [secondarySelectionLocation](appkit/nstextselection/secondaryselectionlocation.md)
- [NSTextLocation](appkit/nstextlocation.md)
- [textRanges](appkit/nstextselection/textranges.md)
- [typingAttributes](appkit/nstextselection/typingattributes.md)
