Fill

Overview

Fill 是Python的Aspose.Cells FOSS中的一个类.

表示一个单元格或数组的填充设置.

本类提供了Python程序中使用 Fill对象的5种方法. 有的方法包括: __init__, set_gradient_fill, set_no_fill, set_pattern_fill, set_solid_fill. 在安装Python包的Aspose.Cells FOSS后,所有公众成员都可以访问任何 Python 应用程序. 特性: background_color, foreground_color, pattern_type.

Properties

NameTypeAccessDescription
pattern_type``Read得到了模式类型.
foreground_color``Read得到了前景的颜色.
background_color``Read得到了背景颜色.

Methods

SignatureDescription
__init__(pattern_type, foreground_color, background_color)启动一个新的 Fill类实例.
set_solid_fill(color)设置一个特定颜色的固体填充模式.
set_gradient_fill(start_color, end_color)设置梯度填充模式 (目前简化为固体填补).
set_pattern_fill(pattern_type, fg_color, bg_color)设置指定模式类型和颜色的图案填充.
set_no_fill()没有填写 (透明背景).

See Also

 中文