getLineDash method
Gets the current dash list sequence.
![]() ![]() |
Syntax
CanvasRenderingContext2D.getLineDash();Parameters
- dashList [out]
-
Type: sequence
Array that represents the pattern of lines and spaces for dash list.
Return value
This method does not return a value.
Standards information
Remarks
This method returns the current pattern of lines and spaces in a dash list array. The array will always have an even number of members, or be empty if there is no dash list.
See also
Show:

