ID2D1SvgElement::InsertChildBefore method (d2d1svg.h)
Inserts newChild as a child of this element, before the referenceChild element. If the newChild element already has a parent, it is removed from this parent as part of the insertion.
Syntax
HRESULT InsertChildBefore(
[in] ID2D1SvgElement *newChild,
[in, optional] ID2D1SvgElement *referenceChild
);
Parameters
[in] newChild
Type: ID2D1SvgElement*
The element to be inserted.
[in, optional] referenceChild
Type: ID2D1SvgElement*
The element that the child should be inserted before. If referenceChild is null, the newChild is placed as the last child. If referenceChild is non-null, it must be an immediate child of this element.
Return value
Type: HRESULT
This method returns an HRESULT success or error code. Returns an error if this element cannot accept children of the type of newChild. Returns an error if the newChild is an ancestor of this element.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d2d1svg.h |
DLL | Direct2d.dll |