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

NameTypeAccessDescription
pattern_type``ReadGets the pattern type.
foreground_color``ReadGets the foreground color.
background_color``ReadGets the background color.

Methods

SignatureDescription
__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