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: StyleBase

This 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_width applies when anchor_point is None or ShapeBasePointKind.TOP_CENTER or ShapeBasePointKind.CENTER or ShapeBasePointKind.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:

Spacing

property prop_anchor_point: ShapeBasePointKind | None
Return type:

ShapeBasePointKind | None

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_full_width: bool | None
Return type:

bool | None