ID2D1SvgDocument::SetRoot method (d2d1svg.h)

Sets the root element of the document.The root element must be an svg element. If the element already exists within an svg tree, it is first removed.

Syntax

HRESULT SetRoot(
  [in, optional] ID2D1SvgElement *root
);

Parameters

[in, optional] root

Type: ID2D1SvgElement*

The new root element of the document.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Requirements

Requirement Value
Target Platform Windows
Header d2d1svg.h
DLL Direct2d.dll

See also

ID2D1SvgDocument