Search Results for

    Show / Hide Table of Contents

    Class BasicArrayPointList

    A data collection class for ZedGraph, provided as an alternative to PointPairList.

    Inheritance
    Object
    BasicArrayPointList
    Implements
    IPointList
    ICloneable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    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 Source

    BasicArrayPointList(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
    | Improve this Doc View Source

    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 Source

    x

    Instance of an array of x values

    Declaration
    public double[] x
    Field Value
    Type Description
    Double[]
    | Improve this Doc View Source

    y

    Instance of an array of x values

    Declaration
    public double[] y
    Field Value
    Type Description
    Double[]

    Properties

    | Improve this Doc View Source

    Count

    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
    | Improve this Doc View Source

    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 that is outside of its corresponding array bounds.

    Methods

    | Improve this Doc View Source

    Clone()

    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 Source

    ICloneable.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

    Implements

    IPointList
    System.ICloneable

    See Also

    PointPairList
    IPointList
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX