GetDependentsInCalculation

Cells.GetDependentsInCalculation method

获取计算结果依赖于特定单元格的所有单元格。

public IEnumerator GetDependentsInCalculation(int row, int column, bool recursive)
范围类型描述
rowInt32特定单元格的行索引
columnInt32特定单元格的列索引。
recursiveBoolean是否返回那些不直接引用特定单元格但引用该单元格的其他叶子的依赖项。

返回值

枚举器枚举所有依赖项(Cell 对象)

评论

要使用此方法,请确保已将工作簿设置为 的真值EnableCalculationChain并且已经用这个设置完全计算出来了GetDependentsInCalculation

也可以看看