LineFormat class
LineFormat class
Represents all setting of the line.
Inheritance: LineFormat
→
FillFormat
The LineFormat type exposes the following members:
Properties
Property | Description |
---|---|
type | Gets and sets the fill type. |
fill_type | Gets and sets fill type |
transparency | Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear). |
set_type | Gets the fill format set type. |
gradient_fill | Gets FillFormat.gradient_fill object. |
texture_fill | Gets FillFormat.texture_fill object. |
solid_fill | Gets FillFormat.solid_fill object. |
pattern_fill | Gets FillFormat.pattern_fill object. |
gradient_color_type | Returns the gradient color type for the specified fill. |
gradient_style | Returns the gradient style for the specified fill. |
gradient_color1 | Returns the gradient color 1 for the specified fill. |
gradient_color2 | Returns the gradient color 2 for the specified fill. |
gradient_degree | Returns the gradient degree for the specified fill. Only applies for Excel 2007. |
gradient_variant | Returns the gradient variant for the specified fill. Only applies for Excel 2007. |
preset_color | Returns the gradient preset color for the specified fill. |
texture | Represents the texture type for the specified fill. |
pattern | Represents an area’s display pattern. |
picture_format_type | Gets and sets the picture format type. |
scale | Gets and sets the picture format scale. |
image_data | Gets and sets the picture image data. |
compound_type | Specifies the line compound type. |
dash_style | Specifies the line dash type. |
cap_type | Specifies the ending caps. |
join_type | Specifies the line join type. |
begin_arrowhead_style | Gets and sets the begin arrow type of the line. |
begin_arrowhead_width | Gets and sets the begin arrow width type of the line. |
begin_arrowhead_length | Gets and sets the begin arrow length type of the line. |
end_arrowhead_style | Gets and sets the end arrow type of the line. |
end_arrowhead_width | Gets and sets the end arrow width type of the line. |
end_arrowhead_length | Gets and sets the end arrow length type of the line. |
weight | Gets or sets the weight of the line in unit of points. |
Methods
Method | Description |
---|---|
set_two_color_gradient | Sets the specified fill to a two-color gradient. Only applies for Excel 2007. |
set_two_color_gradient | Sets the specified fill to a two-color gradient. Only applies for Excel 2007. |
set_one_color_gradient | Sets the specified fill to a one-color gradient. Only applies for Excel 2007. |
set_preset_color_gradient | Sets the specified fill to a preset-color gradient. Only applies for Excel 2007. |
Example
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
See Also
- module
aspose.cells.drawing
- class
FillFormat
- class
LineFormat