ooodev.adapter.beans.property_container_partial module
- class ooodev.adapter.beans.property_container_partial.PropertyContainerPartial(component, interface=com.sun.star.beans.XPropertyContainer)[source]
Bases:
object
Partial class for XPropertyContainer.
- Parameters:
component (XPropertyContainer) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.beans.XPropertyContainer)[source]
Constructor
- Parameters:
component (XPropertyContainer) – UNO Component that implements
com.sun.star.container.XPropertyContainer
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XPropertyContainer
.
- Return type:
None
- add_property(name, attributes, value)[source]
Adds a property to the container.
- Parameters:
name (str) – The name of the property.
attributes (PropertyAttributeEnum) – The attributes of the property. Flags enum, this is a combination of
com.sun.star.beans.PropertyAttribute
.value (Any) – The value of the property.
- Return type:
None