Partager via


ColorScaleCriteria.Item Property

Returns a single ColorScaleCriterion object from the ColorScaleCriteriacollection. Read-only.

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

Syntax

'Declaration
ReadOnly Property Item ( _
    Index As Object _
) As ColorScaleCriterion
    Get
'Usage
Dim instance As ColorScaleCriteria
Dim Index As Object
Dim value As ColorScaleCriterion

value = instance.Item(Index)
ColorScaleCriterion this[
    Object Index
] { get; }

Parameters

Property Value

Type: Microsoft.Office.Interop.Excel.ColorScaleCriterion
ColorScaleCriterion

Remarks

The value of the Index parameter cannot be greater than the number of criteria set for an color scale conditional format. The criteria are equivalent to the threshold values assigned for the color scale. To find the number of threshold values, use the ColorScaleCriteria.Count property.

See Also

Reference

ColorScaleCriteria Interface

ColorScaleCriteria Members

Microsoft.Office.Interop.Excel Namespace