DundasWinExtensions
DrawSeries(Chart,ChartGraphics,Series,Double,ThresholdOverlayLocation,AreaStyle) Method
See Also  Send comments on this topic.
DundasWinExtensions Assembly > Dundas.Extensions Namespace > ThresholdLineHelper Class > DrawSeries Method : DrawSeries(Chart,ChartGraphics,Series,Double,ThresholdOverlayLocation,AreaStyle) Method


chart
Chart object containing the series.
graph
ChartGraphics object, available from Chart Paint event handlers as a parameter.
series
Series to paint a threshold line against.
yThreshold
Y-value of the threshold line.
overlayLocation
Determines where the overlay is to be painted over the series relative to the threshold line.
thresholdOverlayStyle
Style of the threshold overlay.
Draws a threshold line against a Area or SplineArea chart type series.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Sub DrawSeries( _
   ByVal chart As Chart, _
   ByVal graph As ChartGraphics, _
   ByVal series As Series, _
   ByVal yThreshold As Double, _
   ByVal overlayLocation As ThresholdOverlayLocation, _
   ByVal thresholdOverlayStyle As AreaStyle _
) 
Visual Basic (Usage) Copy Code
Dim chart As Chart
Dim graph As ChartGraphics
Dim series As Series
Dim yThreshold As Double
Dim overlayLocation As ThresholdOverlayLocation
Dim thresholdOverlayStyle As AreaStyle
 
ThresholdLineHelper.DrawSeries(chart, graph, series, yThreshold, overlayLocation, thresholdOverlayStyle)
C#  
public static void DrawSeries( 
   Chart chart,
   ChartGraphics graph,
   Series series,
   double yThreshold,
   ThresholdOverlayLocation overlayLocation,
   AreaStyle thresholdOverlayStyle
)

Parameters

chart
Chart object containing the series.
graph
ChartGraphics object, available from Chart Paint event handlers as a parameter.
series
Series to paint a threshold line against.
yThreshold
Y-value of the threshold line.
overlayLocation
Determines where the overlay is to be painted over the series relative to the threshold line.
thresholdOverlayStyle
Style of the threshold overlay.

Exceptions

Exception Description
ArgumentNullException Thrown when chart, ChartGraphics or series parameter is null.
ArgumentException Thrown when series has wrong chart type.

Remarks

This method should be called during the chart's PostPaint event.

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.