---
title: "location(in:)"
framework: paperkit
role: symbol
role_heading: Instance Method
path: "paperkit/markupadornment/anchor-swift.struct/location(in:)"
---

# location(in:)

Returns the position of this anchor within the specified markup’s coordinate system.

## Declaration

```swift
func location(in markup: PaperMarkup) -> CGPoint?
```

## Parameters

- `markup`: The PaperMarkup instance to calculate the location within.

## Return Value

Return Value A CGPoint representing the anchor’s position in the markup’s coordinate system, or nil if the location is unavailable.
