---
title: kAXSelectedTextRangesAttribute
framework: Application Services
role: symbol
role_heading: Global Variable
platforms: [macOS 10.5+]
path: applicationservices/kaxselectedtextrangesattribute
---

# kAXSelectedTextRangesAttribute

## Declaration

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

## Discussion

Discussion An array of noncontiguous ranges of characters (not bytes) that defines the current selections of an editable text element. Value: A CFArrayRef of kAXValueCFRanges. Writable? Yes. Recommended for text elements that support noncontiguous selections.
