SpreadsheetGear The Performance Spreadsheet Component Company 
BackgroundCalculation Property
See Also 
SpreadsheetGear Namespace > IWorkbookSet Interface : BackgroundCalculation Property
Gets or sets the property which specifies whether interruptible background calculation will be initiated as needed when the last lock on a workbook set is released.

Syntax

C# 
virtual bool BackgroundCalculation {get; set;}

Remarks

This property is thread safe.

Changing BackgroundCalculation from true to false stops background calculation before the property setter returns.

BackgroundCalculation is on by default. However, background calculation will not be initiated if Calculation is set to Calculation.Manual or if a lock is never acquired and subsequently released.

When utilizing background calculation, GetLock must be used to acquire a lock before any access to any object in a workbook set.

All Windows Forms components from SpreadsheetGear use GetLock and ReleaseLock whenever they access anything in a workbook set.

See GetLock and ReleaseLock for more information about acquiring and releasing locks as well as the effect this has on background calculation.

Requirements

Platforms: Windows Vista, Windows XP, Windows Server 2008, Windows Server 2003, Windows 2000, Windows Me and Windows 98, including 32 bit and 64 bit editions where applicable. SpreadsheetGear for .NET 1.x requires the Microsoft .NET Framework 1.1 or .NET 2.0 (works with .NET 3.x). SpreadsheetGear for .NET 2007 requires the Microsoft .NET Framework 2.0 (works with .NET 3.x).

See Also