Compartilhar via


_Worksheet.EnableFormatConditionsCalculation Property

Returns or sets if conditional formats will occur automatically as needed. Read/write Boolean.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property EnableFormatConditionsCalculation As Boolean
    Get
    Set
'Usage
Dim instance As _Worksheet
Dim value As Boolean

value = instance.EnableFormatConditionsCalculation

instance.EnableFormatConditionsCalculation = value
bool EnableFormatConditionsCalculation { get; set; }

Property Value

Type: System.Boolean
Boolean

Remarks

When set to True (default), evaluation of conditional formats will occur automatically as needed. When set to False, conditional formats will not be re-evaluated. Any previously applied conditional formatting will still be visible, but it will not update as cell values or AppliesTo ranges are changed.

The purpose of this flag is to allow programmers to configure a rule completely before evaluating it. This is particularly useful when condition is applied over a large range as performance can be slow in these cases.

See Also

Reference

_Worksheet Interface

_Worksheet Members

Microsoft.Office.Interop.Excel Namespace