[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Workbook.WaitForCalculationToFinish

WaitForCalculationToFinish Method

WaitForCalculationToFinish()

Waits for all calculations in the workbook to finish.

This method blocks the current thread until all pending calculations, including asynchronous calculations, have completed. Call this method before performing operations that depend on calculated results.

Declaration
public void WaitForCalculationToFinish()
Public Sub WaitForCalculationToFinish()
Implements
Examples
worksheet.Range["A1"].Formula = "=IMAGE(\"https://example.com/logo.jpg\")";
workbook.Calculate();
workbook.WaitForCalculationToFinish();
CellPicture picture = worksheet.Range["A1"].CellPicture;