dotnetCHARTING Send comments on this topic.
FromColorsRange(ElementValue,ScaleRange,Color[]) Method
See Also 
dotnetCHARTING Namespace > SmartPalette Class > FromColorsRange Method : FromColorsRange(ElementValue,ScaleRange,Color[]) Method


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.
Generates a SmartPalette based on the specified element value, element value range, and colors.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function FromColorsRange( _
   ByVal ev As ElementValue, _
   ByVal sr As ScaleRange, _
   ByVal ParamArray colors() As Color _
) As SmartPalette
Visual Basic (Usage)Copy Code
Dim ev As ElementValue
Dim sr As ScaleRange
Dim colors() As Color
Dim value As SmartPalette
 
value = SmartPalette.FromColorsRange(ev, sr, colors)
C# 
public static SmartPalette FromColorsRange( 
   ElementValue ev,
   ScaleRange sr,
   params Color[] colors
)

Parameters

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.

Remarks

The resulting smartPalette will apply to all series and elements.

See Also

© 2018 All Rights Reserved.