Class StockPointList
A collection class containing a list of StockPt objects that define the set of points to be displayed on the curve.
Implements
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class StockPointList : List<StockPt>, IList<StockPt>, ICollection<StockPt>, IEnumerable<StockPt>, IList, ICollection, IEnumerable, IPointListEdit, IPointList, ICloneable
Constructors
| Improve this Doc View SourceStockPointList()
Default constructor for the collection class
Declaration
public StockPointList()
StockPointList(StockPointList)
The Copy Constructor
Declaration
public StockPointList(StockPointList rhs)
Parameters
Type | Name | Description |
---|---|---|
StockPointList | rhs | The StockPointList from which to copy |
Properties
| Improve this Doc View SourceItem[Int32]
Indexer to access the specified StockPt 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 StockPt object to be accessed. |
Property Value
Type | Description |
---|---|
PointPair | A StockPt object reference. |
Methods
| Improve this Doc View SourceAdd(Double, Double)
Add a StockPt object to the collection at the end of the list using the specified values. The unspecified values (low, open, close) are all set to Missing.
Declaration
public void Add(double date, double high)
Parameters
Type | Name | Description |
---|---|---|
Double | date | An XDate value |
Double | high | The high value for the day |
Add(Double, Double, Double, Double, Double, Double)
Add a single point to the PointPairList from values of type double.
Declaration
public void Add(double date, double high, double low, double open, double close, double vol)
Parameters
Type | Name | Description |
---|---|---|
Double | date | An XDate value |
Double | high | The high value for the day |
Double | low | The low value for the day |
Double | open | The opening value for the day |
Double | close | The closing value for the day |
Double | vol | The trading volume for the day |
Add(PointPair)
Add a PointPair object to the collection at the end of the list.
Declaration
public void Add(PointPair point)
Parameters
Type | Name | Description |
---|---|---|
PointPair | point | The PointPair object to be added |
Add(StockPt)
Add a StockPt object to the collection at the end of the list.
Declaration
public void Add(StockPt point)
Parameters
Type | Name | Description |
---|---|---|
StockPt | point | The StockPt object to be added |
Clone()
Typesafe, deep-copy clone method.
Declaration
public StockPointList Clone()
Returns
Type | Description |
---|---|
StockPointList | A new, independent copy of this class |
GetAt(Int32)
Access the StockPt at the specified ordinal index.
Declaration
public StockPt GetAt(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The ordinal position (zero-based) in the list |
Returns
Type | Description |
---|---|
StockPt | The specified StockPt. |
Remarks
To be compatible with the IPointList interface, the StockPointList must implement an index that returns a PointPair rather than a StockPt. This method will return the actual StockPt at the specified position.
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 |