---
title: "set_line_dash method"
url: "https://reference.aspose.com/html/python-net/aspose.html.dom.canvas/icanvasdrawingstyles/set_line_dash/"
product: "Aspose.HTML for Python via .NET API References"
---


## set_line_dash {#list}

Sets the current line dash pattern.



```python
def set_line_dash(self, segments):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| segments | list | An Array of numbers which specify distances to alternately draw a line and a gap (in coordinate space units) |



### See Also
* module [`aspose.html.dom.canvas`](../../)
* class [`ICanvasDrawingStyles`](/html/python-net/aspose.html.dom.canvas/icanvasdrawingstyles)
