.netCHARTING v10.5 Documentation


dotnetCHARTING Namespace > SmartPalette Class > FromColorsRange Method : FromColorsRange(String,ElementValue,ScaleRange,Color[]) Method
The name of a series or element. Use "*" as a wildcard.
Element value on which element coloring is based.
ScaleRange that specifies the minimum and maximum range of the element value to include in the palette.
Colors to base SmartColors on.
FromColorsRange(String,ElementValue,ScaleRange,Color[]) Method
Generates a SmartPalette with range colors for series or elements with a specific name. It is based on the specified element value, element value range, and colors.
Syntax
'Declaration
 
Public Overloads Shared Function FromColorsRange( _
   ByVal key As String, _
   ByVal ev As ElementValue, _
   ByVal sr As ScaleRange, _
   ByVal ParamArray colors() As Color _
) As SmartPalette
'Usage
 
Dim key As String
Dim ev As ElementValue
Dim sr As ScaleRange
Dim colors() As Color
Dim value As SmartPalette
 
value = SmartPalette.FromColorsRange(key, ev, sr, colors)
public static SmartPalette FromColorsRange( 
   string key,
   ElementValue ev,
   ScaleRange sr,
   params Color[] colors
)

Parameters

key
The name of a series or element. Use "*" as a wildcard.
ev
Element value on which element coloring is based.
sr
ScaleRange that specifies the minimum and maximum range of the element value to include in the palette.
colors
Colors to base SmartColors on.

Return Value

A SmartPalette with generated smart colors.
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