Class SamplePointList
A collection class to maintain a set of samples
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class SamplePointList : IPointList, ICloneable
Constructors
| Improve this Doc View SourceSamplePointList()
default constructor
Declaration
public SamplePointList()
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 SourceXType
Determines what data type gets plotted for the X values
Declaration
public SampleType XType
Field Value
Type | Description |
---|---|
SampleType |
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 SourceCount
Gets the number of samples in the collection
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
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 SourceAdd(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 |
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) |
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 SourceICloneable.Clone()
Declaration
object ICloneable.Clone()
Returns
Type | Description |
---|---|
Object |