ooodev.format.inner.partial.position_size.draw.protect_partial module
- class ooodev.format.inner.partial.position_size.draw.protect_partial.ProtectPartial(factory_name, component, lo_inst=None)[source]
Bases:
object
Partial class for Size.
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- __init__(factory_name, component, lo_inst=None)[source]
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- Return type:
None
- style_protect(position=None, size=None)[source]
Style Area Color.
- Parameters:
position (bool, optional) – Specifies position protection.
size (bool, optional) – Specifies size protection.
- Raises:
CancelEventError – If the event
before_style_protect
is cancelled and not handled.- Returns:
Position instance or
None
if cancelled.- Return type:
ProtectT | None
- style_protect_get()[source]
Gets the Protect Style.
- Raises:
CancelEventError – If the event
before_style_protect_get
is cancelled and not handled.- Returns:
Protect style or
None
if cancelled.- Return type:
ProtectT | None