<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macOS: -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/browserAccessibilityAttributedValue(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)browserAccessibilityAttributedValueInRange:"
  },
  "title" : "browserAccessibilityAttributedValue(in:)"
}
-->

# browserAccessibilityAttributedValue(in:)

Returns the value for this element within the given range, as an attributed string.

```
func browserAccessibilityAttributedValue(in range: NSRange) -> NSAttributedString
```

## Parameters

`range`

The range within this element’s value to return.

## Return Value

An attributed string that’s the substring of this element’s value within the given range.

---

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)