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

# accessibilityTextMarkerRange(for:)

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

## Declaration

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

## Parameters

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

## Return Value

Return Value The text marker range for the text in range, or nil 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)
- [accessibilityRange(for:)](browserenginekit/beaccessibilitytextmarkersupport/accessibilityrange(for:).md)
- [BEAccessibilityTextMarker.Range](browserenginekit/beaccessibilitytextmarker/range.md)
