ooodev.format.inner.modify.write.frame.wrap.options module

class ooodev.format.inner.modify.write.frame.wrap.options.Options(*, first=None, background=None, contour=None, outside=None, overlap=None, style_name=StyleFrameKind.FRAME, style_family='FrameStyles')[source]

Bases: FrameStyleBaseMulti

Frame Style Wrap Options.

New in version 0.9.0.

__init__(*, first=None, background=None, contour=None, outside=None, overlap=None, style_name=StyleFrameKind.FRAME, style_family='FrameStyles')[source]

Constructor

Parameters:
  • first (bool , optional) – Specifies first paragraph.

  • background (bool , optional) – Specifies in background.

  • contour (bool , optional) – Specifies contour.

  • outside (bool , optional) – Specifies contour outside only. contour must be True for this parameter to be effective.

  • overlap (bool , optional) – Specifies allow overlap.

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

Options instance from style properties.

Return type:

Options

property prop_inner: Options

Gets/Sets Inner Options instance

Return type:

Options

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str