Syncfusion.XlsIO.Base
Example 


Indicates whether to check from other worksheets.

GetDependents(Boolean) Method

Gets the dependent cells which refer to other cells.
Syntax
'Declaration
 
Overloads Function GetDependents( _
   ByVal isAll As Boolean _
) As IRange()
'Usage
 
Dim instance As IRange
Dim isAll As Boolean
Dim value() As IRange
 
value = instance.GetDependents(isAll)
IRange[] GetDependents( 
   bool isAll
)

Parameters

isAll
Indicates whether to check from other worksheets.

Return Value

Returns the dependent cells with a specified bool value or null if value was not found.
Example
The following code illustrates how to get the dependents cells from all the worksheets.
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
IWorkbook workbook = application.Workbooks.Create("FormulaExcel.xlsx");
IWorksheet sheet = workbook.Worksheets[0];
            
IRange[] results = sheet["A1"].GetDependents(true);
            
string fileName = "Dependents.xlsx";
workbook.SaveAs(fileName);
workbook.Close();
excelEngine.Dispose();
AssemblyVersion

Syncfusion.XlsIO.Base: 17.1460.0.32

See Also