DundasWinExtensions
AddColorRange Method
See Also  Send comments on this topic.
DundasWinExtensions Assembly > Dundas.Extensions Namespace > WaferChartType Class : AddColorRange Method


series
Series object which color range to be added to
value1
X value of start of color range
value2
X value of end of color range
color1
Start Color of color range
color2
End Color of color range
showInLegend
Enables or Disables the color ranges appearing in the legend.
Static method to add color range to Series object custom attribute.

Syntax

Visual Basic (Declaration)  
Public Shared Sub AddColorRange( _
   ByVal series As Series, _
   ByVal value1 As Double, _
   ByVal value2 As Double, _
   ByVal color1 As Color, _
   ByVal color2 As Color, _
   ByVal showInLegend As Boolean _
) 
Visual Basic (Usage) Copy Code
Dim series As Series
Dim value1 As Double
Dim value2 As Double
Dim color1 As Color
Dim color2 As Color
Dim showInLegend As Boolean
 
WaferChartType.AddColorRange(series, value1, value2, color1, color2, showInLegend)
C#  
public static void AddColorRange( 
   Series series,
   double value1,
   double value2,
   Color color1,
   Color color2,
   bool showInLegend
)

Parameters

series
Series object which color range to be added to
value1
X value of start of color range
value2
X value of end of color range
color1
Start Color of color range
color2
End Color of color range
showInLegend
Enables or Disables the color ranges appearing in the legend.

Exceptions

Exception Description
ArgumentNullException Thrown when series parameter is null.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.