is_locked mülk

is_locked mülk

True, sayfa korunduğunda nesnenin değiştirilemeyeceği anlamına gelir. Bu değerin yalnızca çalışma sayfası veya çalışma sayfasındaki nesneler korunuyorsa anlamlı olduğunu unutmayın.

Örnek


# Sets the specified shape to unlocked state
if shape.worksheet.is_protected and shape.is_locked:
    shape.is_locked = False
# Sets the specified shape to a locked state
if shape.worksheet.is_protected and notshape.is_locked:
    shape.is_locked = True

Tanım:

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

Ayrıca bakınız