Partager via


ColorScaleCriteria.Count Property

Returns an Integer value that specifies the number of criteria for a color scale conditional format rule. Read-only.

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

Syntax

'Declaration
ReadOnly Property Count As Integer
    Get
'Usage
Dim instance As ColorScaleCriteria
Dim value As Integer

value = instance.Count
int Count { get; }

Property Value

Type: System.Int32
Integer

Remarks

The number of criteria is equivalent to the number of threshold values assigned for a color scale. This will be either two or three, depending on whether you use a two-color scale or three-color scale for the conditional format rule.

See Also

Reference

ColorScaleCriteria Interface

ColorScaleCriteria Members

Microsoft.Office.Interop.Excel Namespace