StructureElement.RemoveAndMoveItsChildObjectsToItsParent

StructureElement.RemoveAndMoveItsChildObjectsToItsParent method

Removes an element from the structure, a reference to it from the parent object, references to it from child objects, and the corresponding object from the document. Inserts child objects of the removed object into its former parent child objects collection starting at the index of the removed object.

public void RemoveAndMoveItsChildObjectsToItsParent(
    bool checkIfChildObjectsCanBeMovedToParent = true)
ParameterTypeDescription
checkIfChildObjectsCanBeMovedToParentBooleanCheck if child objects of removed object can be inserted into its parent child objects collection.

See Also