---
title: "accessibilityRange(for:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/beaccessibilitytextmarkersupport/accessibilityrange(for:)"
---

# accessibilityRange(for:)

Returns the range for the text in a given accessibility marker range.

## Declaration

```swift
func accessibilityRange(for range: BEAccessibilityTextMarker.Range) -> NSRange
```

## Parameters

- `range`: A text marker range for text in the element’s string.

## Return Value

Return Value The range in the string for the text in range, or (NSNotFound,0) if the method can’t calculate the range.

## See Also

### Text ranges

- [accessibilityBounds(for:)](browserenginekit/beaccessibilitytextmarkersupport/accessibilitybounds(for:).md)
- [accessibilityTextMarkerRange()](browserenginekit/beaccessibilitytextmarkersupport/accessibilitytextmarkerrange().md)
- [accessibilityTextMarkerRangeForCurrentSelection()](browserenginekit/beaccessibilitytextmarkersupport/accessibilitytextmarkerrangeforcurrentselection().md)
- [accessibilityTextMarkerRange(for:)](browserenginekit/beaccessibilitytextmarkersupport/accessibilitytextmarkerrange(for:).md)
- [BEAccessibilityTextMarker.Range](browserenginekit/beaccessibilitytextmarker/range.md)
