ID2D1SvgDocument::SetRoot method

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

root [in, optional]

Type: ID2D1SvgElement*

The new root element of the document.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Requirements

Header

D2d1svg.h

DLL

Direct2d.dll

See also

ID2D1SvgDocument

 

 

Show: