# `GSGlyphEditView.selectedLayerRange`

*Instance Property*

The layer selection range after features have been applied.

## Declaration

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

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

```python
selectedLayerRange() -> NSRange
setSelectedLayerRange_(selectedLayerRange: NSRange)
```

## Discussion

When setting this property, the `selectedRange` property should also be set to the corresponding converted character range. When setting the `selectedRange` property (except in the case above), this property should be set to {NSNotFound, 0}. When getting this property, the actual ivar should only be returned if it is not {NSNotFound, 0}. Otherwise, the corresponding converted character range should be returned.

> **Note**
> Setting this property should implicitly set `selectionAnchorLayerIndex` if its length is 0.

