ooodev.format.inner.partial.chart2.area.chart_fill_img_partial module
- class ooodev.format.inner.partial.chart2.area.chart_fill_img_partial.ChartFillImgPartial(factory_name, component, lo_inst=None)[source]
Bases:
objectPartial class for Chart Fill Image.
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- __init__(factory_name, component, lo_inst=None)[source]
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- Return type:
None
- style_area_image(*, bitmap=None, name='', mode=ImgStyleKind.TILED, size=None, position=None, pos_offset=None, tile_offset=None, auto_name=False)[source]
Style Area Color.
- Parameters:
bitmap (XBitmap, optional) – Bitmap instance. If
nameis not already in the Bitmap Table then this property is required.name (str, optional) – Specifies the name of the image. This is also the name that is used to store bitmap in LibreOffice Bitmap Table.
mode (ImgStyleKind, optional) – Specifies the image style, tiled, stretched etc. Default
ImgStyleKind.TILED.size (SizePercent, SizeMM, optional) – Size in percent (
0 - 100) or size inmmunits.position (RectanglePoint) – Tiling position of Image.
pos_offset (Offset, optional) – Tiling position offset.
tile_offset (OffsetColumn, OffsetRow, optional) – The tiling offset.
auto_name (bool, optional) – Specifies if
nameis ensured to be unique. Defaults toFalse.
- Raises:
CancelEventError – If the event
before_style_area_imgis cancelled and not handled.- Returns:
Fill Image instance or
Noneif cancelled.- Return type:
ChartFillImgT | None
Hint
RectanglePointcan be imported fromooo.dyn.drawing.rectangle_pointImgStyleKindcan be imported fromooodev.format.inner.direct.write.fill.area.imgSizePercentcan be imported fromooodev.format.inner.common.format_types.size_percentSizeMMcan be imported fromooodev.utils.data_type.size_mmOffsetColumncan be imported fromooodev.format.inner.common.format_types.offset_columnOffsetRowcan be imported fromooodev.format.inner.common.format_types.offset_rowOffsetcan be imported fromooodev.utils.data_type.offset
- style_area_image_from_preset(preset)[source]
Style Area Gradient from Preset.
- Parameters:
preset (PresetImageKind) – Preset Image Kind.
- Returns:
Chart Fill Image instance.
- Return type:
Hint
PresetImageKindcan be imported fromooodev.format.inner.preset.preset_image
- style_area_image_get()[source]
Gets the Area Area Image Style.
- Raises:
CancelEventError – If the event
before_style_area_img_getis cancelled and not handled.- Returns:
Area image style or
Noneif cancelled.- Return type:
ChartFillImgT | None