Click or drag to resize
CanvasSvgDocument Constructor
[Win10_15063] Initializes a new instance of the CanvasSvgDocument class.

Namespace:  Microsoft.Graphics.Canvas.Svg
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public CanvasSvgDocument(
	ICanvasResourceCreator resourceCreator
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator
Remarks

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

This creates a blank document. A blank document is automatically given a single empty root <svg/> node.

To add content to the document, replace the root node using Root or add to it using AppendChild(ICanvasSvgElement).

See Also