Interface IPointListEdit
An interface to a collection class containing data that define the set of points to be displayed on the curve.
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
public interface IPointListEdit : IPointList, ICloneable
Remarks
This interface is designed to allow customized data abstraction. The default data collection class is PointPairList, however, you can define your own data collection class using the IPointList interface. This IPointListEdit interface adds the ability to remove and add points to the list, and so is used by the CurveItem class for the AddPoint(Double, Double), RemovePoint(Int32), and Clear() methods.
Properties
| Improve this Doc View SourceItem[Int32]
Indexer to access a data point by its ordinal position in the collection.
Declaration
PointPair this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The ordinal position (zero-based) of the data point to be accessed. |
Property Value
Type | Description |
---|---|
PointPair | A PointPair object instance. |
Remarks
This is the standard interface that ZedGraph uses to access the data. Although you must pass a PointPair here, your internal data storage format can be anything.
Methods
| Improve this Doc View SourceAdd(Double, Double)
Appends a point to the end of the list. The data are passed in as two Double types.
Declaration
void Add(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
Double | x | The Double value containing the X data to be added. |
Double | y | The Double value containing the Y data to be added. |
Add(PointPair)
Appends a point to the end of the list. The data are passed in as a PointPair object.
Declaration
void Add(PointPair point)
Parameters
Type | Name | Description |
---|---|---|
PointPair | point | The PointPair object containing the data to be added. |
Clear()
Clears all data points from the list. After calling this method, Count will be zero.
Declaration
void Clear()
RemoveAt(Int32)
Removes a single data point from the list at the specified ordinal location (zero based).
Declaration
void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |