ooodev.format.inner.direct.write.frame.options.align module
- class ooodev.format.inner.direct.write.frame.options.align.Align(adjust=uno.Enum)[source]
Bases:
StyleBase
Frame Vertical Alignment
New in version 0.9.0.
- __init__(adjust=uno.Enum)[source]
Constructor
- Parameters:
adjust (VertAdjustKindl, optional) – Specifies Vertical Adjustment. Default
VertAdjustKind.TOP
- Return type:
None
- classmethod from_obj(obj)[source]
- classmethod from_obj(obj, **kwargs)
- classmethod from_obj(obj, **kwargs)
Gets instance from object
- Parameters:
obj (object) – UNO Object.
- Raises:
NotSupportedError – If
obj
is not supported.- Returns:
Instance that represents Frame Alignment.
- Return type:
- property prop_adjust: VertAdjustKind
Gets/Sets Adjust value
- Return type:
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- class ooodev.format.inner.direct.write.frame.options.align.VertAdjustKind(value)[source]
Bases:
Enum
This enumeration specifies the vertical position of text inside a shape in relation to the shape.
- BOTTOM = 'BOTTOM'
The connection line leaves the connected object from the bottom, The text is positioned below the main line. The bottom edge of the text is adjusted to the bottom edge of the shape.
- CENTER = 'CENTER'
The text is centered inside the shape.
- TOP = 'TOP'
The connection line leaves the connected object from the top, The text is positioned above the main line. The top edge of the text is adjusted to the top edge of the shape.
- property typeName: str
- Return type:
str