Click or drag to resize
CanvasSvgStrokeDashArrayAttributeSetDashes Method (Int32, Single, CanvasSvgLengthUnits)
[Win10_15063] Sets dashes, and their unit modes, to the array.

Namespace:  Microsoft.Graphics.Canvas.Svg
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void SetDashes(
	int startIndex,
	float[] dashValues,
	CanvasSvgLengthUnits[] unitValues
)

Parameters

startIndex
Type: SystemInt32
dashValues
Type: SystemSingle
unitValues
Type: Microsoft.Graphics.Canvas.SvgCanvasSvgLengthUnits
Remarks

This API is only available when running on Windows 10 build 15063 (Creators Update) or greater.

The number of dashes must equal the number of unit modes specified.

Existing dashes not updated by this method are preserved. The array is resized larger if necessary to accomodate the new dashes.

See Also