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 LineStyle _ ) |
Visual Basic (Usage) | ![]() |
---|---|
|
C# | |
---|---|
public static void DrawSeries( Chart chart, ChartGraphics graph, Series series, double yThreshold, ThresholdOverlayLocation overlayLocation, LineStyle 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.
Exception | Description |
---|---|
ArgumentNullException | Thrown when chart, ChartGraphics or series parameter is null. |
ArgumentException | Thrown when series has non Line, FastLine or Spline chart type. |
This method should be called during the chart's PostPaint event.
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