SpreadsheetGear 2010
BackgroundCalculation Property
See Also  Send Feedback
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

Visual Basic (Declaration) 
Property BackgroundCalculation As Boolean
C# 
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 SpreadsheetGear.IWorkbookSet.ReleaseLock whenever they access anything in a workbook set.

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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2003-2010 SpreadsheetGear LLC. All Rights Reserved.Help Powered by Innovasys   
SpreadsheetGear is a registered trademark of SpreadsheetGear LLC.
Microsoft, Microsoft Excel and Visual Studio are trademarks or registered trademarks of Microsoft Corporation.