ooodev.format.inner.direct.write.frame.frame_type.anchor module
- class ooodev.format.inner.direct.write.frame.frame_type.anchor.Anchor(anchor=uno.Enum)[source]
Bases:
StyleBase
Anchor Position Class.
New in version 0.9.0.
- __init__(anchor=uno.Enum)[source]
Constructor
- Parameters:
anchor (AnchorKind) – Specifies the anchor position. Default is
AnchorKind.AT_PARAGRAPH
- 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.
- Returns:
Instance that represents Frame Anchor Position.
- Return type:
- property prop_anchor: AnchorKind
Gets/Sets Anchor position
- Return type:
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- class ooodev.format.inner.direct.write.frame.frame_type.anchor.AnchorKind(value)[source]
Bases:
Enum
Anchor Position Enum.
- AS_CHARACTER = 'AS_CHARACTER'
The object is anchored instead of a character.
- AT_CHARACTER = 'AT_CHARACTER'
The object is anchored to a character.
- AT_PAGE = 'AT_PAGE'
The object is anchored to the page.
- AT_PARAGRAPH = 'AT_PARAGRAPH'
The anchor of the object is set at the top left position of the paragraph.
- property typeName: str
- Return type:
str