ooodev.format.inner.modify.write.para.border.sides module

class ooodev.format.inner.modify.write.para.border.sides.Sides(*, left=None, right=None, top=None, bottom=None, all=None, style_name=StyleParaKind.STANDARD, style_family='ParagraphStyles')[source]

Bases: ParaStyleBaseMulti

Paragraph Style Sides (lines)

New in version 0.9.0.

__init__(*, left=None, right=None, top=None, bottom=None, all=None, style_name=StyleParaKind.STANDARD, style_family='ParagraphStyles')[source]

Constructor

Parameters:
  • left (Side, optional) – Determines the line style at the left edge.

  • right (Side, optional) – Determines the line style at the right edge.

  • top (Side, optional) – Determines the line style at the top edge.

  • bottom (Side, optional) – Determines the line style at the bottom edge.

  • all (Side, optional) – Determines the line style at the top, bottom, left, right edges. If this argument has a value then arguments top, bottom, left, right are ignored

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

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

Return type:

None

classmethod from_style(doc, style_name=StyleParaKind.STANDARD, style_family='ParagraphStyles')[source]

Gets instance from Document.

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

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

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

Returns:

Sides instance from document properties.

Return type:

Sides

property prop_inner: Sides

Gets/Sets Inner Padding instance

Return type:

Sides

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str