---
title: kAXSelectedTextRangeAttribute
framework: applicationservices
role: symbol
role_heading: Global Variable
path: applicationservices/kaxselectedtextrangeattribute
---

# kAXSelectedTextRangeAttribute

Indicates the range of characters (not bytes) that defines the currently selected text within this accessibility object. This attribute is required for all accessibility objects that represent editable text elements.

## Declaration

```swift
var kAXSelectedTextRangeAttribute: String { get }
```
