Class PropPartial
- class ooodev.utils.partial.prop_partial.PropPartial(component, lo_inst)[source]
Property Partial Class.
If this class is used in a class that inherits from EventsPartial, it will automatically observe events for property setting and getting while in the context of this class.
- Parameters:
component (Any) –
lo_inst (LoInst) –
- __init__(component, lo_inst)[source]
Constructor
- Parameters:
component (Any) – Any Uno component that has properties.
lo_inst (LoInst) – Lo Instance. Use when creating multiple documents.
- get_property(name: str)[source]
- get_property(name: str, default: Any)
- get_property(name, default=<ooodev.utils.gen_util._null_obj object>)
Get property value
- Parameters:
name (str) – Property Name.
default (Any, optional) – Return value if property value is
None
.
- Returns:
Property value or default.
- Return type:
Any