---
Product: Aspose.Cells
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/python/fill
---

# Fill

## Overview

`Fill` is a class in Aspose.Cells FOSS for Python.

Represents fill settings for a cell or range of cells.

This class declares 5 methods for Fill objects in Python programs.
Available methods include: `__init__`, `set_gradient_fill`, `set_no_fill`, `set_pattern_fill`, `set_solid_fill`.
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). |

## See Also

- [Aspose.Cells for Python — Enterprise API Reference](https://reference.aspose.com/cells/python-java/)