ooodev.format.draw.modify.shadow.shadow module

Draw Style Shadow.

New in version 0.17.12.

class ooodev.format.draw.modify.shadow.shadow.Shadow(*, use_shadow=None, location=None, color=None, distance=None, blur=None, transparency=None, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Bases: FillPropertiesStyleBaseMulti

Shadow Style value.

New in version 0.17.12.

__init__(*, use_shadow=None, location=None, color=None, distance=None, blur=None, transparency=None, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Constructor

Parameters:
  • use_shadow (bool, optional) – Specifies if shadow is used.

  • location (ShadowLocationKind , optional) – Specifies the shadow location.

  • color (Color , optional) – Specifies shadow color.

  • distance (float, UnitT , optional) – Specifies shadow distance in mm units or Class UnitT.

  • blur (int, UnitT, optional) – Specifies shadow blur in pt units or in mm units or Class UnitT.

  • transparency (int , optional) – Specifies shadow 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:

Shadow instance from document properties.

Return type:

Shadow

property prop_inner: Shadow

Gets/Sets Inner Font instance

Return type:

Shadow

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str