ooodev.format.inner.common.abstract.abstract_sides module
Module for managing character border side.
New in version 0.9.0.
- class ooodev.format.inner.common.abstract.abstract_sides.AbstractSides(*, left=None, right=None, top=None, bottom=None, all=None)[source]
Bases:
StyleMulti
Character Border for use in styles.
Any properties starting with
prop_
set or get current instance values.All methods starting with
fmt_
can be used to chain together properties.New in version 0.9.0.
- __init__(*, left=None, right=None, top=None, bottom=None, all=None)[source]
Constructor
- Parameters:
left (Side, optional) – Determines the line style at the left edge.
right (Side, optional) – Determines the line style at the right edge.
top (Side, optional) – Determines the line style at the top edge.
bottom (Side, optional) – Determines the line style at the bottom edge.
all (Side, 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 ignored
- Return type:
None
- fmt_border_side(value)[source]
Gets copy of instance with left, right, top, bottom sides set or removed
- classmethod from_obj(obj)[source]
- classmethod from_obj(obj, **kwargs)
- classmethod from_obj(obj, **kwargs)
Gets instance from object properties
- Parameters:
obj (object) – UNO object.
- Raises:
NotSupportedError – If
obj
is not supported.- Returns:
Instance that represents
BorderLine2
.- Return type:
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type: