RemoveAt
RemoveAt(int)
从工作簿中删除指定的外部链接。
public void RemoveAt(int index)
范围 | 类型 | 描述 |
---|---|---|
index | Int32 | 要删除的外部链接的索引。 |
评论
删除外部链接时,所有引用它的公式也将被删除,因为 引用变得无效。
也可以看看
- class ExternalLinkCollection
- 命名空间 Aspose.Cells
- 部件 Aspose.Cells
RemoveAt(int, bool)
从工作簿中删除指定的外部链接。
public void RemoveAt(int index, bool updateReferencesAsLocal)
范围 | 类型 | 描述 |
---|---|---|
index | Int32 | 要删除的外部链接的索引。 |
updateReferencesAsLocal | Boolean | 是否将给定外部链接的所有引用更新为当前工作簿本身的引用。 |
评论
如果需要更新引用,公式中对外部链接的引用将更改为当前工作簿。 例如,要删除的外部链接是“externalsource.xlam”,它定义了一个自定义函数“customfunction()”, 一个单元格的原始公式是“=‘externalsource.xlam’!customfunction()”, 去掉公式后会变成“=customfunction()”。 如果不需要更新引用,所有引用这个外部的公式link 也将被删除,因为这些引用变得无效。
也可以看看
- class ExternalLinkCollection
- 命名空间 Aspose.Cells
- 部件 Aspose.Cells