ooodev.format.inner.modify.write.fill.area.img module
- class ooodev.format.inner.modify.write.fill.area.img.Img(*, bitmap=None, name='', mode=ImgStyleKind.TILED, size=None, position=None, pos_offset=None, tile_offset=None, auto_name=False, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]
Bases:
FillStyleBaseMulti
Paragraph Style Fill Coloring
New in version 0.9.0.
- __init__(*, bitmap=None, name='', mode=ImgStyleKind.TILED, size=None, position=None, pos_offset=None, tile_offset=None, auto_name=False, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]
Constructor
- Parameters:
color (
Color
, optional) – FillColor Colorstyle_name (StyleParaKind, str, optional) – Specifies the Paragraph Style that instance applies to. Default is Default Paragraph Style.
style_family (str, DrawStyleFamilyKind, optional) – Family Style.
bitmap (XBitmap | None) –
name (str) –
mode (ImgStyleKind) –
size (SizePercent | SizeMM | None) –
position (RectanglePoint | None) –
pos_offset (Offset | None) –
tile_offset (OffsetColumn | OffsetRow | None) –
auto_name (bool) –
- Return type:
None
- classmethod from_preset(preset, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]
Gets an instance from a preset
- Parameters:
preset (PresetImageKind) – Preset
style_name (str) –
style_family (str | DrawStyleFamilyKind) –
- Returns:
Instance from preset.
- Return type:
- classmethod from_style(doc, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]
Gets instance from Document.
- Parameters:
doc (object) – UNO Document Object.
style_name (FamilyGraphics, str, optional) – Specifies the Paragraph Style that instance applies to. Default is Default Paragraph Style.
style_family (str, optional) – Style family. Default
ParagraphStyles
.
- Returns:
Img
instance from document properties.- Return type:
- property prop_style_name: str
Gets/Sets property Style Name
- Return type:
str