is_locked property

is_locked property

True if the object is locked, False if the object can be modified when the sheet is protected.

Example


if shape.is_locked:
    shape.is_locked = False

Definition:

@property
def is_locked(self):
    ...
@is_locked.setter
def is_locked(self, value):
    ...

See Also