---
title: location
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextattachmentviewprovider/location
---

# location

The location that indicates the start of the text attachment.

## Declaration

```swift
var location: any NSTextLocation { get }
```

## Discussion

Discussion Specify the value of this property at initialization time using the init(textAttachment:parentView:textLayoutManager:location:) initializer.

## See Also

### Defining the contents

- [textAttachment](appkit/nstextattachmentviewprovider/textattachment.md)
- [textLayoutManager](appkit/nstextattachmentviewprovider/textlayoutmanager.md)
- [tracksTextAttachmentViewBounds](appkit/nstextattachmentviewprovider/trackstextattachmentviewbounds.md)
- [view](appkit/nstextattachmentviewprovider/view.md)
