dotnetCHARTING Send comments on this topic.
SmartColor Constructor(Color,Color,ScaleRange,ElementValue)
See Also 
dotnetCHARTING Namespace > SmartColor Class > SmartColor Constructor : SmartColor Constructor(Color,Color,ScaleRange,ElementValue)


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.
elementValue
Element value used to compare against the scale range to determine if an element uses this SmartColor.
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

Visual Basic (Declaration) 
Public Function New( _
   ByVal color As Color, _
   ByVal colorSecondary As Color, _
   ByVal range As ScaleRange, _
   ByVal elementValue As ElementValue _
)
Visual Basic (Usage)Copy Code
Dim color As Color
Dim colorSecondary As Color
Dim range As ScaleRange
Dim elementValue As ElementValue
 
Dim instance As SmartColor(color, colorSecondary, range, elementValue)
C# 
public SmartColor( 
   Color color,
   Color colorSecondary,
   ScaleRange range,
   ElementValue elementValue
)

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.
elementValue
Element value used to compare against the scale range to determine if an element uses this SmartColor.

See Also

© 2010 All Rights Reserved.