SpreadsheetGear 2017
AddColorScale Method (IFormatConditions)






SpreadsheetGear Namespace > IFormatConditions Interface : AddColorScale Method
The color scale type which specifies whether to add a 2-Color or 3-Color color scale conditional format.
Adds a new IColorScale conditional format to the represented range.
Syntax
'Declaration
 
Function AddColorScale( _
   ByVal colorScaleType As System.Integer _
) As IFormatCondition
'Usage
 
Dim instance As IFormatConditions
Dim colorScaleType As System.Integer
Dim value As IFormatCondition
 
value = instance.AddColorScale(colorScaleType)
IFormatCondition AddColorScale( 
   System.int colorScaleType
)
function AddColorScale( 
    colorScaleType: System.Integer
): IFormatCondition; 
function AddColorScale( 
   colorScaleType : System.int
) : IFormatCondition;
IFormatCondition* AddColorScale( 
   System.int colorScaleType
) 
IFormatCondition^ AddColorScale( 
   System.int colorScaleType
) 

Parameters

colorScaleType
The color scale type which specifies whether to add a 2-Color or 3-Color color scale conditional format.

Return Value

The new conditional format.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IFormatConditions Interface
IFormatConditions Members