ooodev.adapter.style.line_spacing_struct_comp module
- class ooodev.adapter.style.line_spacing_struct_comp.LineSpacingStructComp(component, prop_name, event_provider=None)[source]
Bases:
StructBase[LineSpacing]Line Spacing 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_style_LineSpacing_changing. The event raised after the property is changed is calledcom_sun_star_style_LineSpacing_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 typeKeyValArgs.- __init__(component, prop_name, event_provider=None)[source]
Constructor
- Parameters:
component (LineSpacing) – Line Spacing Component.
prop_name (str) – Property Name. This value is assigned to the
prop_nameofevent_data.event_provider (EventsT, optional) – Event Provider.
- Return type:
None
- property height: UnitMM100
Gets/Sets the height in regard to Mode.
When setting value can be an
intin1/100th mmunits or aUnitT.- Returns:
Height.
- Return type:
Hint
UnitMM100can be imported fromooodev.units
- property mode: ModeKind
Gets/Sets - This value specifies the way the height is specified.
- Returns:
Mode Kind.
- Return type:
ModeKind
Hint
ModeKindcan be imported fromooodev.utils.kind.line_spacing_mode_kind