Fill
Overview
Fill is a class in Aspose.Cells FOSS for Python.
Represents fill settings for a cell or range of cells.
This class provides 5 methods for working with Fill objects in Python programs.
Available methods include: __init__, set_gradient_fill, set_no_fill, set_pattern_fill, set_solid_fill.
All public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: background_color, foreground_color, pattern_type.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
pattern_type | `` | Read | Gets the pattern type. |
foreground_color | `` | Read | Gets the foreground color. |
background_color | `` | Read | Gets the background color. |
Methods
| Signature | Description |
|---|---|
__init__(pattern_type, foreground_color, background_color) | Initializes a new instance of Fill class. |
set_solid_fill(color) | Sets a solid fill pattern with specified color. |
set_gradient_fill(start_color, end_color) | Sets a gradient fill pattern (currently simplified as solid fill). |
set_pattern_fill(pattern_type, fg_color, bg_color) | Sets a pattern fill with specified pattern type and colors. |
set_no_fill() | Sets no fill (transparent background). |