ooodev.format.inner.modify.write.frame.frame_type.anchor module

Module for Fill Transparency.

New in version 0.9.0.

class ooodev.format.inner.modify.write.frame.frame_type.anchor.Anchor(*, anchor=AnchorKind.AT_PARAGRAPH, style_name=StyleFrameKind.FRAME, style_family='FrameStyles')[source]

Bases: FrameStyleBaseMulti

Frame Style Type Anchor Position.

New in version 0.9.0.

__init__(*, anchor=AnchorKind.AT_PARAGRAPH, style_name=StyleFrameKind.FRAME, style_family='FrameStyles')[source]

Constructor

Parameters:
  • anchor (AnchorKind) – Specifies the anchor position. Default is AnchorKind.AT_PARAGRAPH

  • style_name (StyleFrameKind, str, optional) – Specifies the Frame Style that instance applies to. Default is Default Frame Style.

  • style_family (str, optional) – Style family. Default FrameStyles.

Return type:

None

classmethod from_style(doc, style_name=StyleFrameKind.FRAME, style_family='FrameStyles')[source]

Gets instance from Document.

Parameters:
  • doc (object) – UNO Document Object.

  • style_name (StyleFrameKind, str, optional) – Specifies the Frame Style that instance applies to. Default is Default Frame Style.

  • style_family (str, optional) – Style family. Default FrameStyles.

Returns:

Anchor instance from style properties.

Return type:

Anchor

property prop_inner: Anchor

Gets/Sets Inner Anchor instance

Return type:

Anchor

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str