ooodev.adapter.table.shadow_format_struct_comp module

class ooodev.adapter.table.shadow_format_struct_comp.ShadowFormatStructComp(component, prop_name, event_provider=None)[source]

Bases: StructBase[ShadowFormat]

Shadow Format Struct.

This class raises an event before and after a property is changed if it has been passed an event provider.

The event raised before the property is changed is called com_sun_star_table_ShadowFormat_changing. The event raised after the property is changed is called com_sun_star_table_ShadowFormat_changed.

The event args for before the property is changed is of type KeyValCancelArgs. The event args for after the property is changed is of type KeyValArgs.

__init__(component, prop_name, event_provider=None)[source]

Constructor

Parameters:
  • component (ShadowFormat) – Shadow Format.

  • prop_name (str) – Property Name. This value is assigned to the prop_name of event_data.

  • event_provider (EventsT, optional) – Event Provider.

Return type:

None

property color: Color

Gets/Sets the color value of the line.

Returns:

Color

Return type:

Color

property is_transparent: bool

Gets/Sets - True, if shadow is transparent.

Returns:

Is Transparent.

Return type:

bool

property location: ShadowLocation

Gets/Sets the location of the shadow.

Returns:

Shadow Location.

Return type:

ShadowLocation

Hint

  • ShadowLocation can be imported from ooo.dyn.table.shadow_location.

property shadow_width: UnitMM100

Gets/Sets the size of the shadow. (in 1/100 mm).

Value can be set with a UnitT instance or an int in 1/100 mm units.

Returns:

Line Distance.

Return type:

UnitMM100

Hint

  • UnitMM100 can be imported from ooodev.units.unit_mm100.