LineFormat类
LineFormat类
表示线路的所有设置。
继承: LineFormat → FillFormat
LineFormat 类型公开了以下成员:
特性
属性 | 描述 |
---|---|
type | 获取和设置填充类型。 |
fill_type | 获取和设置填充类型 |
transparency | 将区域的透明度返回或设置为从 0.0(不透明)到 1.0(透明)的值。 |
set_type | 获取填充格式集类型。 |
gradient_fill | 获取 FillFormat.gradient_fill 对象。 |
texture_fill | 获取 FillFormat.texture_fill 对象。 |
solid_fill | 获取 FillFormat.solid_fill 对象。 |
pattern_fill | 获取 FillFormat.pattern_fill 对象。 |
gradient_color_type | 返回指定填充的渐变颜色类型。 |
gradient_style | 返回指定填充的渐变样式。 |
gradient_color1 | 返回指定填充的渐变颜色 1。 |
gradient_color2 | 返回指定填充的渐变颜色 2。 |
gradient_degree | 返回指定填充的渐变度。 仅适用于 Excel 2007。 |
gradient_variant | 返回指定填充的渐变变体。 仅适用于 Excel 2007。 |
preset_color | 返回指定填充的渐变预设颜色。 |
texture | 表示指定填充的纹理类型。 |
pattern | 表示一个区域的显示模式。 |
picture_format_type | 获取和设置图片格式类型。 |
scale | 获取和设置图片格式比例。 |
image_data | 获取和设置图片图像数据。 |
compound_type | 指定线路复合类型。 |
dash_style | 指定虚线类型。 |
cap_type | 指定结束大写。 |
join_type | 指定线连接类型。 |
begin_arrowhead_style | 获取和设置线的开始箭头类型。 |
begin_arrowhead_width | 获取和设置线的开始箭头宽度类型。 |
begin_arrowhead_length | 获取和设置线的开始箭头长度类型。 |
end_arrowhead_style | 获取和设置线的结束箭头类型。 |
end_arrowhead_width | 获取和设置线的结束箭头宽度类型。 |
end_arrowhead_length | 获取和设置线条的结束箭头长度类型。 |
weight | 以点为单位获取或设置线的权重。 |
方法
方法 | 描述 |
---|---|
set_two_color_gradient(color1, color2, style, variant) | 将指定的填充设置为双色渐变。 仅适用于 Excel 2007。 |
set_two_color_gradient(color1, transparency1, color2, transparency2, style, variant) | 将指定的填充设置为双色渐变。 仅适用于 Excel 2007。 |
set_one_color_gradient(color, degree, style, variant) | 将指定的填充设置为单色渐变。 仅适用于 Excel 2007。 |
set_preset_color_gradient(preset_color, style, variant) | 将指定的填充设置为预设颜色渐变。 仅适用于 Excel 2007。 |
例子
from aspose.cells import Workbook
# Instantiating a Workbook object
workbook = Workbook()
shapes = workbook.worksheets[0].shapes
shape = shapes.add_rectangle(1, 0, 1, 0, 50, 100)
lineFmt = shape.line