# `GSSelectableElementProtocol.locked`

*Instance Property*

Whether editing operations should leave the object unchanged.

## Declaration

```swift
var isLocked: Bool { get set }
```

```objc
@property (nonatomic, getter=isLocked) BOOL locked;
```

```python
isLocked() -> bool
setLocked_(locked: bool)
```

## Discussion

The protocol does not enforce this state; editing APIs that support locked objects consult the flag before modifying them.

## See Also

### Editing

- [`GSSelectableElementProtocol.position`](/Core/GlyphsCore/GSSelectableElementProtocol/position) — The position in layer coordinates.

