ZedGraph LogoZedGraph Class Library Documentation
AddCurve Method (label, points, color, symbolType)
NamespacesZedGraphGraphPaneAddCurve(String, IPointList, Color, SymbolType)
Add a curve (CurveItem object) to the plot with the given data points (IPointList) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.
Declaration Syntax
C#Visual BasicVisual C++
public LineItem AddCurve(
	string label,
	IPointList points,
	Color color,
	SymbolType symbolType
)
Public Function AddCurve ( _
	label As String, _
	points As IPointList, _
	color As Color, _
	symbolType As SymbolType _
) As LineItem
public:
LineItem^ AddCurve (
	String^ label, 
	IPointList^ points, 
	Color color, 
	SymbolType symbolType
)
Parameters
label (String)
The text label (string) for the curve that will be used as a Legend entry.
points (IPointList)
A IPointList of double precision value pairs that define the X and Y values for this curve
color (Color)
The color to used for the curve line, symbols, etc.
symbolType (SymbolType)
A symbol type (SymbolType) that will be used for this curve.
Return Value
A CurveItem class for the newly created curve. This can then be used to access all of the curve properties that are not defined as arguments to the AddCurve(String, IPointList, Color, SymbolType) method.

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621