Class BasicArrayPointList
A data collection class for ZedGraph, provided as an alternative to PointPairList.
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class BasicArrayPointList : IPointList, ICloneable
Remarks
The data storage class for ZedGraph can be any type, so long as it uses the IPointList interface. This class, albeit simple, is a demonstration of implementing the IPointList interface to provide a simple data collection using only two arrays. The IPointList interface can also be used as a layer between ZedGraph and a database, for example.
Constructors
| Improve this Doc View SourceBasicArrayPointList(Double[], Double[])
Constructor to initialize the PointPairList from two arrays of type double.
Declaration
public BasicArrayPointList(double[] x, double[] y)
Parameters
Type | Name | Description |
---|---|---|
Double[] | x | |
Double[] | y |
BasicArrayPointList(BasicArrayPointList)
The Copy Constructor
Declaration
public BasicArrayPointList(BasicArrayPointList rhs)
Parameters
Type | Name | Description |
---|---|---|
BasicArrayPointList | rhs | The PointPairList from which to copy |
Fields
| Improve this Doc View Sourcex
Instance of an array of x values
Declaration
public double[] x
Field Value
Type | Description |
---|---|
Double[] |
y
Instance of an array of x values
Declaration
public double[] y
Field Value
Type | Description |
---|---|
Double[] |
Properties
| Improve this Doc View SourceCount
Returns the number of points available in the arrays. Count will be the greater of the lengths of the X and Y arrays.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Item[Int32]
Indexer to access the specified PointPair object by its ordinal position in the list.
Declaration
public PointPair this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The ordinal position (zero-based) of the PointPair object to be accessed. |
Property Value
Type | Description |
---|---|
PointPair | A PointPair object reference. |
Remarks
Returns Missing for any value of
Methods
| Improve this Doc View SourceClone()
Typesafe, deep-copy clone method.
Declaration
public BasicArrayPointList Clone()
Returns
Type | Description |
---|---|
BasicArrayPointList | A new, independent copy of this class |
Explicit Interface Implementations
| Improve this Doc View SourceICloneable.Clone()
Implement the ICloneable interface in a typesafe manner by just calling the typed version of Clone()
Declaration
object ICloneable.Clone()
Returns
Type | Description |
---|---|
Object | A deep copy of this object |