ooodev.format.calc.direct.cell.cell_protection package
Module contents
- class ooodev.format.calc.direct.cell.cell_protection.CellProtection(hide_all=False, protected=False, hide_formula=False, hide_print=False)[source]
Bases:
CellProtectionStructCell Protection.
Warning
Cell protection is only effective after the sheet is has been applied to is also been protected.
See also
New in version 0.9.0.
- __init__(hide_all=False, protected=False, hide_formula=False, hide_print=False)[source]
Constructor
- Parameters:
hide_all (bool, optional) – Specifies if all is hidden. Defaults to
False.protected (bool, optional) – Specifies protected value. Defaults to
False.hide_formula (bool, optional) – Specifies if the formula is hidden. Defaults to
False.hide_print (bool, optional) – Specifies if the cell are to be omitted during print. Defaults to
False.
- Return type:
None
See also
- classmethod from_obj(obj)[source]
- classmethod from_obj(obj, **kwargs)
- classmethod from_obj(obj, **kwargs)
Gets instance from object
- Parameters:
obj (object) – UNO object
- Raises:
PropertyNotFoundError – If
objdoes not have required property- Returns:
CellProtectionStructinstance that representsobjCellProtection properties.- Return type:
- classmethod from_uno_struct(value)[source]
- classmethod from_uno_struct(value, **kwargs)
- classmethod from_uno_struct(value, **kwargs)
Converts a
CellProtectioninstance to aCellProtectionStruct.- Parameters:
value (CellProtection) – UNO
CellProtection.- Returns:
CellProtectionStructset withCellProtectionproperties.- Return type: