ooodev.adapter.table.border_line2_struct_comp module
- class ooodev.adapter.table.border_line2_struct_comp.BorderLine2StructComp(component, prop_name, event_provider=None)[source]
Bases:
BorderLineStructCompBorder2 Line Struct. A border line, extended with line style.
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_BorderLine_changing. The event raised after the property is changed is calledcom_sun_star_table_BorderLine_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 (BorderLine) – Border Line 2.
prop_name (str) – Property Name. This value is assigned to the
prop_nameofevent_data.event_provider (EventsT, optional) – Event Provider.
- Return type:
None
- copy()[source]
Makes a copy of the Border Line.
- Returns:
Copied Border Line.
- Return type:
BorderLine
- property component: BorderLine2
BorderLine Component
- Return type:
BorderLine2
- property line_style: BorderLineStyleEnum
Gets/Sets the style of the border.
When setting the value, it can be set with an
intor aBorderLineStyleEnuminstance.- Returns:
Border Line Style Enum.
- Return type:
BorderLineStyleEnum
Hint
BorderLineStyleEnumcan be imported fromooo.dyn.table.border_line_style.
- property line_width: UnitMM100
Gets/Sets width of the border, this is the base to compute all the lines and gaps widths. These widths computations are based on the
line_styleproperty. This property is prevailing on the old Out, In and Dist width fromborder_line. If this property is set to0, then the other widths will be used to guess the border width.Value can be set with a
UnitTinstance or anintin1/100 mmunits.- Returns:
Line Width.
- Return type:
Hint
UnitMM100can be imported fromooodev.units.unit_mm100.UnitPTcan be imported fromooodev.units.unit_ptHAIRLINEisUnitPT(0.05)VERY_THINisUnitPT(0.5)THINisUnitPT(0.75)MEDIUMisUnitPT(1.5)THICKisUnitPT(2.25)EXTRA_THICKisUnitPT(4.5)