ooodev.format.draw.modify.transparency.transparency module

Draw Fill Transparency.

New in version 0.17.9.

class ooodev.format.draw.modify.transparency.transparency.Transparency(value=0, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Bases: FillPropertiesStyleBaseMulti

Transparency Style value.

New in version 0.17.9.

__init__(value=0, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Constructor

Parameters:
  • value (Intensity, int, optional) – Specifies the transparency value from 0 to 100.

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

  • style_family (str, DrawStyleFamilyKind, optional) – Family Style. Defaults to graphics.

Return type:

None

classmethod from_style(doc, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Gets instance from Document.

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

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

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

Returns:

Transparency instance from document properties.

Return type:

Transparency

property prop_inner: Transparency

Gets/Sets Inner Font instance

Return type:

Transparency

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str