[]
Gets the precedent ranges of the left top cell of the range.
IReadOnlyList<IRange> GetPrecedents()
Function GetPrecedents() As IReadOnlyList(Of IRange)
| Type | Description |
|---|---|
| IReadOnlyList<IRange> | The precedent ranges. |
worksheet.Range["A1"].Value = 10;
worksheet.Range["B1"].Formula = "=A1*2";
List<IRange> precedents = worksheet.Range["B1"].GetPrecedents();
Gets the precedent ranges of all the cells of the range.
IReadOnlyList<IRange> GetPrecedents(bool includeIndirect)
Function GetPrecedents(includeIndirect As Boolean) As IReadOnlyList(Of IRange)
| Type | Name | Description |
|---|---|---|
| bool | includeIndirect | Include the indirect precedent cells. |
| Type | Description |
|---|---|
| IReadOnlyList<IRange> | The precedent ranges. |
worksheet.Range["A1"].Value = 10;
worksheet.Range["B1"].Formula = "=A1*2";
List<IRange> precedents = worksheet.Range["B1"].GetPrecedents();