<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAccessibilityNavigableStaticText/accessibilityFrame(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSAccessibilityNavigableStaticText(im)accessibilityFrameForRange:"
  },
  "title" : "accessibilityFrame(for:)"
}
-->

# accessibilityFrame(for:)

Returns the rectangle that encloses the specified range of characters.

```
func accessibilityFrame(for range: NSRange) -> NSRect
```

## Parameters

`range`

The range of characters.

## Return Value

The rectangle that encloses the specified characters.

## Discussion

If the range crosses a line boundary, the returned rectangle will fully enclose all the lines of characters.

---

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)