Spread Windows Forms 12.0 Product Documentation
AddColorScale Method


GrapeCity.Spreadsheet Assembly > GrapeCity.Spreadsheet Namespace > IFormatConditions Interface : AddColorScale Method
An integer value that indicates the number of color scales.
Returns a new IColorScale object representing a conditional formatting rule that uses gradations in cell colors to indicate relative differences in the values of cells included in a selected range.
Syntax
'Declaration
 
Function AddColorScale( _
   ByVal colorScales As Integer _
) As IColorScale
'Usage
 
Dim instance As IFormatConditions
Dim colorScales As Integer
Dim value As IColorScale
 
value = instance.AddColorScale(colorScales)
IColorScale AddColorScale( 
   int colorScales
)

Parameters

colorScales
An integer value that indicates the number of color scales.

Return Value

A new IColorScale object representing a conditional formatting rule that uses gradations in cell colors.
See Also

Reference

IFormatConditions Interface
IFormatConditions Members