ooodev.format.inner.partial.write.char.borders.write_char_borders_partial module
- class ooodev.format.inner.partial.write.char.borders.write_char_borders_partial.WriteCharBordersPartial(component)[source]
Bases:
object
Partial class for Write Char Borders.
- Parameters:
component (Any) –
- style_borders(*, right=None, left=None, top=None, bottom=None, border_side=None, shadow=None, padding=None)[source]
Style Write Character Borders.
- Parameters:
left (Side | None, optional) – Determines the line style at the left edge.
right (Side | None, optional) – Determines the line style at the right edge.
top (Side | None, optional) – Determines the line style at the top edge.
bottom (Side | None, optional) – Determines the line style at the bottom edge.
border_side (Side | None, optional) – Determines the line style at the top, bottom, left, right edges. If this argument has a value then arguments
top
,bottom
,left
,right
are ignoredshadow (Shadow | None, optional) – Character Shadow
padding (Padding | None, optional) – Character padding
- Raises:
CancelEventError – If the event
before_style_char_borders
is cancelled and not handled.- Returns:
Attribute Options Style instance or
None
if cancelled.- Return type:
Borders | None
Hint
BorderLine
can be imported fromooodev.format.writer.direct.char.borders
BorderLine2
can be imported fromooodev.format.writer.direct.char.borders
BorderLineKind
can be imported fromooodev.format.writer.direct.char.borders
Borders
can be imported fromooodev.format.writer.direct.char.borders
LineSize
can be imported fromooodev.format.writer.direct.char.borders
Padding
can be imported fromooodev.format.writer.direct.char.borders
Shadow
can be imported fromooodev.format.inner.direct.write.char.border.shadow
ShadowFormat
can be imported fromooodev.format.writer.direct.char.borders
Side
can be imported fromooodev.format.writer.direct.char.borders
side
can be imported fromooodev.format.writer.direct.char.borders
Sides
can be imported fromooodev.format.writer.direct.char.borders
ShadowLocation
can 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 Characters.
- Parameters:
left (float, UnitT, optional) – Left (in
mm
units) or Class UnitT.right (float, UnitT, optional) – Right (in
mm
units) or Class UnitT.top (float, UnitT, optional) – Top (in
mm
units) or Class UnitT.bottom (float, UnitT, optional) – Bottom (in
mm
units) or Class UnitT.all_sides (float, UnitT, optional) – Left, right, top, bottom (in
mm
units) or Class UnitT. If argument is present thenleft
,right
,top
, andbottom
arguments are ignored.
- Raises:
CancelEventError – If the event
before_style_char_borders
is cancelled and not handled.- Returns:
Borders Style instance or
None
if cancelled.- Return type:
Borders | None
- style_borders_side(*, line=BorderLineKind.SOLID, color=0, width=LineSize.THIN, shadow=None, padding=None)[source]
Style All Write Character Borders.
- Parameters:
line (BorderLineStyleEnum, optional) – Line Style of the border. Default
BorderLineKind.SOLID
.color (
Color
, optional) – Color of the border. DefaultStandardColor.BLACK
width (LineSize, float, UnitT, optional) – Contains the width in of a single line or the width of outer part of a double line (in
pt
units) or Class UnitT. If this value is zero, no line is drawn. DefaultLineSize.THIN
shadow (Shadow | None, optional) – Character Shadow
padding (Padding | None, optional) – Character padding
- Raises:
CancelEventError – If the event
before_style_char_borders
is cancelled and not handled.- Returns:
Borders Style instance or
None
if cancelled.- Return type:
Borders | None
Hint
BorderLine
can be imported fromooodev.format.writer.direct.char.borders
BorderLine2
can be imported fromooodev.format.writer.direct.char.borders
BorderLineKind
can be imported fromooodev.format.writer.direct.char.borders
LineSize
can be imported fromooodev.format.writer.direct.char.borders
Padding
can be imported fromooodev.format.writer.direct.char.borders
Shadow
can be imported fromooodev.format.writer.direct.char.borders
ShadowFormat
can be imported fromooodev.format.writer.direct.char.borders
ShadowLocation
can be importedfrom ooo.dyn.table.shadow_location