ooodev.format.inner.direct.draw.shape.text.text.text_anchor module
- class ooodev.format.inner.direct.draw.shape.text.text.text_anchor.TextAnchor(anchor_point=None, full_width=None)[source]
Bases:
StyleBaseThis class represents the text spacing of an object that supports
com.sun.star.drawing.TextProperties.New in version 0.17.5.
- __init__(anchor_point=None, full_width=None)[source]
Constructor.
- Parameters:
anchor_point (ShapeBasePointKind, optional) – Anchor Point.
full_width (bool, optional) – Full Width. Defaults to None.
- Return type:
None
Note
full_widthapplies whenanchor_pointisNoneorShapeBasePointKind.TOP_CENTERorShapeBasePointKind.CENTERorShapeBasePointKind.BOTTOM_CENTER.
- classmethod from_obj(obj: object)[source]
- classmethod from_obj(obj: object, **kwargs)
- classmethod from_obj(obj, **kwargs)
Creates a new instance from
obj.- Parameters:
obj (Any) – UNO Shape object.
- Returns:
New instance.
- Return type:
- property prop_anchor_point: ShapeBasePointKind | None
- Return type:
ShapeBasePointKind | None
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_full_width: bool | None
- Return type:
bool | None