Element.InsertChild

Element.InsertChild method

Insert Element to collection of children at specified index.

public Element InsertChild(Element element, int index, bool checkIfCanBeInserted = true)
ParameterTypeDescription
elementElementElement object to add.
indexInt32Element index.
checkIfCanBeInsertedBooleanCheck if can be inserted.

Return Value

Element which has been added.

Exceptions

exceptioncondition
TaggedException

See Also