Search Results for

    Show / Hide Table of Contents

    Class SamplePointList

    A collection class to maintain a set of samples

    Inheritance
    Object
    SamplePointList
    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 SamplePointList : IPointList, ICloneable

    Constructors

    | Improve this Doc View Source

    SamplePointList()

    default constructor

    Declaration
    public SamplePointList()
    | Improve this Doc View Source

    SamplePointList(SamplePointList)

    copy constructor -- this returns a copy of the structure, but it does not duplicate the data (it just keeps a reference to the original)

    Declaration
    public SamplePointList(SamplePointList rhs)
    Parameters
    Type Name Description
    SamplePointList rhs

    The SamplePointList to be copied

    Fields

    | Improve this Doc View Source

    XType

    Determines what data type gets plotted for the X values

    Declaration
    public SampleType XType
    Field Value
    Type Description
    SampleType
    | Improve this Doc View Source

    YType

    Determines what data type gets plotted for the Y values

    Declaration
    public SampleType YType
    Field Value
    Type Description
    SampleType

    Properties

    | Improve this Doc View Source

    Count

    Gets the number of samples in the collection

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    Item[Int32]

    Indexer: get the Sample instance at the specified ordinal position in the list

    Declaration
    public PointPair this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index

    The ordinal position in the list of samples

    Property Value
    Type Description
    PointPair

    Returns a PointPair instance containing the data specified by XType and YType

    Methods

    | Improve this Doc View Source

    Add(Sample)

    Append a sample to the collection

    Declaration
    public int Add(Sample sample)
    Parameters
    Type Name Description
    Sample sample

    The sample to append

    Returns
    Type Description
    Int32

    The ordinal position at which the sample was added

    | Improve this Doc View Source

    Clone()

    typesafe clone method

    Declaration
    public SamplePointList Clone()
    Returns
    Type Description
    SamplePointList

    A new cloned SamplePointList. This returns a copy of the structure, but it does not duplicate the data (it just keeps a reference to the original)

    | Improve this Doc View Source

    GetValue(Sample, SampleType)

    Get the specified data type from the specified sample

    Declaration
    public double GetValue(Sample sample, SampleType type)
    Parameters
    Type Name Description
    Sample sample

    The sample instance of interest

    SampleType type

    The data type to be extracted from the sample

    Returns
    Type Description
    Double

    A double value representing the requested data

    Explicit Interface Implementations

    | Improve this Doc View Source

    ICloneable.Clone()

    Declaration
    object ICloneable.Clone()
    Returns
    Type Description
    Object

    Implements

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