Table of Contents

Method InsertChildBefore

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

InsertChildBefore(ISvgElement, ISvgElement?)

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.

void InsertChildBefore(ISvgElement newChild, ISvgElement? referenceChild = null)

Parameters

newChild ISvgElement

The element to be inserted.

referenceChild ISvgElement

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.