Click or drag to resize
CanvasSvgStrokeDashArrayAttributeSetDashes Method (Int32, Single, CanvasSvgLengthUnits)
[Win10_15063] Sets dashes, and their unit mode, 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[] dashes,
	CanvasSvgLengthUnits units
)

Parameters

startIndex
Type: SystemInt32
dashes
Type: SystemSingle
units
Type: Microsoft.Graphics.Canvas.SvgCanvasSvgLengthUnits
Remarks

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

This overload is for setting dashes which use one consistent unit mode. If the dashes have different unit modes, use SetDashes(Int32, Single, CanvasSvgLengthUnits).

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

See Also