dotnetCHARTING Send comments on this topic.
FromColors Method
See Also 
dotnetCHARTING Namespace > SmartPalette Class : FromColors Method


ev
Element value on which element coloring is based.
colors
Colors to base SmartColors on.
Creates a SmartPalette with range colors based on the specified element value and colors.

Syntax

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

Parameters

ev
Element value on which element coloring is based.
colors
Colors to base SmartColors on.

Return Value

The resulting smartPalette will be empty. The value ranges for the individual SmartColors will be evaluated at run-time.

See Also

© 2011 All Rights Reserved.