Element.InsertChild
Element.InsertChild 方法
将元素插入到指定索引的子元素集合中。
public Element InsertChild(Element element, int index, bool checkIfCanBeInserted = true)
| 参数 | 类型 | 描述 |
|---|---|---|
| element | Element | 要添加的元素对象。 |
| index | Int32 | 元素索引。 |
| checkIfCanBeInserted | Boolean | 检查是否可以插入。 |
返回值
已添加的元素。
异常
| 异常 | 条件 |
|---|---|
| TaggedException |
另请参阅
- 类 Element
- 命名空间 Aspose.Pdf.LogicalStructure
- 程序集 Aspose.PDF