ooodev.format.inner.partial.write.table.write_table_borders_partial module
- class ooodev.format.inner.partial.write.table.write_table_borders_partial.WriteTableBordersPartial(component)[source]
Bases:
objectPartial class for Write Table Borders.
- Parameters:
component (Any) –
- style_borders(*, right=None, left=None, top=None, bottom=None, border_side=None, vertical=None, horizontal=None, distance=None, shadow=None, padding=None, merge_adjacent=None)[source]
Style Write Table Borders.
- Parameters:
left (Side,, optional) – Specifies the line style at the left edge.
right (Side, optional) – Specifies the line style at the right edge.
top (Side, optional) – Specifies the line style at the top edge.
bottom (Side, optional) – Specifies the line style at the bottom edge.
border_side (Side, optional) – Specifies the line style at the top, bottom, left, right edges. If this argument has a value then arguments
top,bottom,left,rightare ignoredhorizontal (Side, optional) – Specifies the line style of horizontal lines for the inner part of a cell range.
vertical (Side, optional) – Specifies the line style of vertical lines for the inner part of a cell range.
distance (float, UnitT, optional) – Contains the distance between the lines and other contents in
mmunits or Class UnitT.shadow (Shadow | None, optional) – Cell Shadow.
padding (Padding | None, optional) – Cell padding.
merge_adjacent (bool, optional) – Specifies if adjacent line style are to be merged.
- Raises:
CancelEventError – If the event
before_style_table_bordersis cancelled and not handled.- Returns:
Border Style instance or
Noneif cancelled.- Return type:
Borders | None
Hint
BorderLinecan be imported fromooodev.format.writer.direct.char.bordersBorderLine2can be imported fromooodev.format.writer.direct.char.bordersBorderLineKindcan be imported fromooodev.format.writer.direct.char.bordersBorderscan be imported fromooodev.format.writer.direct.char.bordersLineSizecan be imported fromooodev.format.writer.direct.char.bordersPaddingcan be imported fromooodev.format.inner.direct.calc.border.paddingShadowcan be imported fromooodev.format.inner.direct.calc.border.shadowShadowFormatcan be imported fromooodev.format.writer.direct.char.bordersSidecan be imported fromooodev.format.writer.direct.char.borderssidecan be imported fromooodev.format.writer.direct.char.bordersSidescan be imported fromooodev.format.writer.direct.char.bordersShadowLocationcan be importedfrom ooo.dyn.table.shadow_location
- style_borders_padding(*, left=None, right=None, top=None, bottom=None, all_sides=None)[source]
Style Padding for Write Table.
- Parameters:
left (float, UnitT, optional) – Left (in
mmunits) or Class UnitT.right (float, UnitT, optional) – Right (in
mmunits) or Class UnitT.top (float, UnitT, optional) – Top (in
mmunits) or Class UnitT.bottom (float, UnitT, optional) – Bottom (in
mmunits) or Class UnitT.all_sides (float, UnitT, optional) – Left, right, top, bottom (in
mmunits) or Class UnitT. If argument is present thenleft,right,top, andbottomarguments are ignored.
- Raises:
CancelEventError – If the event
before_style_table_bordersis cancelled and not handled.- Returns:
Borders Style instance or
Noneif cancelled.- Return type:
Borders | None
- style_borders_side(*, line=BorderLineKind.SOLID, color=0, width=LineSize.THIN, shadow=None, padding=None)[source]
Style All Write Table Borders.
- Parameters:
line (BorderLineStyleEnum, optional) – Line Style of the border. Default
BorderLineKind.SOLID.color (
Color, optional) – Color of the border. DefaultStandardColor.BLACKwidth (LineSize, float, UnitT, optional) – Contains the width in of a single line or the width of outer part of a double line (in
ptunits) or Class UnitT. If this value is zero, no line is drawn. DefaultLineSize.THINshadow (Shadow | None, optional) – Cell Shadow.
padding (Padding | None, optional) – Cell padding.
- Raises:
CancelEventError – If the event
before_style_table_bordersis cancelled and not handled.- Returns:
Borders Style instance or
Noneif cancelled.- Return type:
Borders | None
Hint
BorderLine2can be imported fromooo.dyn.table.border_line2BorderLinecan be imported fromooo.dyn.table.border_lineBorderLineKindcan be imported fromooodev.format.inner.direct.structs.sideLineSizecan be imported fromooodev.format.inner.direct.structs.sidePaddingcan be imported fromooodev.format.inner.direct.calc.border.paddingShadowcan be imported fromooodev.format.inner.direct.calc.border.shadowShadowFormatcan be imported fromooodev.format.writer.direct.char.bordersShadowLocationcan be importedfrom ooo.dyn.table.shadow_location