# `GSGlyphEditView.selectedRange`

*Instance Property*

The selection range in characters as in the original string. Just like the `markedRange` property, its location contains the character index from the text beginning.

## Declaration

```swift
var selectedRange: NSRange { get set }
```

```objc
@property (nonatomic) NSRange selectedRange;
```

```python
selectedRange() -> NSRange
setSelectedRange_(selectedRange: NSRange)
```

## Discussion

> **Note**
> In `NSTextInputClient`, this is readonly.

