ooodev.adapter.awt.uno_control_container_model_partial module

class ooodev.adapter.awt.uno_control_container_model_partial.UnoControlContainerModelPartial(component)[source]

Bases: UnoControlModelPartial

Partial class for UnoControlContainerModel.

Parameters:

component (UnoControlContainerModel) –

__init__(component)[source]

Constructor

Parameters:

component (Any) – Component that implements com.sun.star.awt.UnoControlContainerModel service.

property background_color: Color

Gets/Set the background color of the control.

Returns:

Color

Return type:

Color

property border: BorderKind

Gets/Sets the border style of the control.

Note

Value can be set with BorderKind or int.

Hint

  • BorderKind can be imported from ooodev.utils.kind.border_kind.

Return type:

BorderKind

property border_color: Color | None

Gets/Sets the color of the border, if present

Not every border style (see Border) may support coloring. For instance, usually a border with 3D effect will ignore the border_color setting.

optional

Returns:

Color or None if not set.

Return type:

Color | None

property enabled: bool

Gets/Sets whether the control is enabled or disabled.

Return type:

bool

property help_text: str

Get/Sets the help text of the control.

Return type:

str

property help_url: str

Gets/Sets the help URL of the control.

Return type:

str

property printable: bool

Gets/Sets that the control will be printed with the document.

Return type:

bool

property text: str

Gets/Sets the text displayed in the control.

Return type:

str