
## 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 [`ICanvasRenderingContext2D`](/html/python-net/aspose.html.dom.canvas/icanvasrenderingcontext2d)
