.netCHARTING v10.5 Documentation


dotnetCHARTING Namespace > SmartColor Class > SmartColor Constructor : SmartColor Constructor(Color,Color,ScaleRange)
SmartColor's main color.
Secondary color. When used, this is a gradient SmartColor and elements are colored with colors ranging from the main to the secondary color depending on the element values.
Value range criteria for elements matching the elementValue of each element.
SmartColor Constructor(Color,Color,ScaleRange)
Initializes a new instance of the SmartColor object with a gradient consisting of two colors and scale range. By default this will check element's YValue to determine whether the element is colored based on this SmartColor.
Syntax
'Declaration
 
Public Function New( _
   ByVal color As Color, _
   ByVal colorSecondary As Color, _
   ByVal range As ScaleRange _
)
'Usage
 
Dim color As Color
Dim colorSecondary As Color
Dim range As ScaleRange
 
Dim instance As New SmartColor(color, colorSecondary, range)
public SmartColor( 
   Color color,
   Color colorSecondary,
   ScaleRange range
)

Parameters

color
SmartColor's main color.
colorSecondary
Secondary color. When used, this is a gradient SmartColor and elements are colored with colors ranging from the main to the secondary color depending on the element values.
range
Value range criteria for elements matching the elementValue of each element.
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