ooodev.format.inner.partial.chart2.area.chart_fill_pattern_partial module
- class ooodev.format.inner.partial.chart2.area.chart_fill_pattern_partial.ChartFillPatternPartial(factory_name, component, lo_inst=None)[source]
Bases:
object
Partial class for Chart Fill Pattern.
- 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_pattern(*, bitmap=None, name='', tile=True, stretch=False, auto_name=False)[source]
Style Area Color.
- Parameters:
bitmap (XBitmap, optional) – Bitmap instance. If
name
is not already in the Bitmap Table then this property is required.name (str, optional) – Specifies the name of the pattern. This is also the name that is used to store bitmap in LibreOffice Bitmap Table.
tile (bool, optional) – Specified if bitmap is tiled. Defaults to
True
.stretch (bool, optional) – Specifies if bitmap is stretched. Defaults to
False
.auto_name (bool, optional) – Specifies if
name
is ensured to be unique. Defaults toFalse
.
- Raises:
CancelEventError – If the event
before_style_area_pattern
is cancelled and not handled.- Returns:
Fill Image instance or
None
if cancelled.- Return type:
ChartFillPatternT | None
- style_area_pattern_from_preset(preset)[source]
Style Area Gradient from Preset.
- Parameters:
preset (PresetPatternKind) – Preset Image Kind.
- Returns:
Chart Fill Image instance.
- Return type:
Hint
PresetPatternKind
can be imported fromooodev.format.inner.preset.preset_pattern
- style_area_pattern_get()[source]
Gets the Area Area Pattern Style.
- Raises:
CancelEventError – If the event
before_style_area_pattern_get
is cancelled and not handled.- Returns:
Area pattern style or
None
if cancelled.- Return type:
ChartFillPatternT | None