Element.InsertChild

Element.InsertChild 方法

将元素插入到指定索引的子元素集合中。

public Element InsertChild(Element element, int index, bool checkIfCanBeInserted = true)
参数类型描述
elementElement要添加的元素对象。
indexInt32元素索引。
checkIfCanBeInsertedBoolean检查是否可以插入。

返回值

已添加的元素。

异常

异常条件
TaggedException

另请参阅