Class StockPt
The basic PointPair class holds three data values (X, Y, Z). This class extends the basic PointPair to contain five data values (X, Y, Z, Open, Close).
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class StockPt : PointPair, ICloneable, ISerializable
Remarks
Constructors
| Improve this Doc View SourceStockPt()
Default Constructor
Declaration
public StockPt()
StockPt(Double, Double, Double, Double, Double, Double)
Construct a new StockPt from the specified data values
Declaration
public StockPt(double date, double high, double low, double open, double close, double vol)
Parameters
Type | Name | Description |
---|---|---|
Double | date | The trading date (XDate) |
Double | high | The daily high stock price |
Double | low | The daily low stock price |
Double | open | The opening stock price |
Double | close | The closing stock price |
Double | vol | The daily trading volume |
StockPt(Double, Double, Double, Double, Double, Double, String)
Construct a new StockPt from the specified data values including a Tag property
Declaration
public StockPt(double date, double high, double low, double open, double close, double vol, string tag)
Parameters
Type | Name | Description |
---|---|---|
Double | date | The trading date (XDate) |
Double | high | The daily high stock price |
Double | low | The daily low stock price |
Double | open | The opening stock price |
Double | close | The closing stock price |
Double | vol | The daily trading volume |
String | tag | The user-defined Tag property. |
StockPt(SerializationInfo, StreamingContext)
Constructor for deserializing objects
Declaration
protected StockPt(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | A SerializationInfo instance that defines the serialized data |
StreamingContext | context | A StreamingContext instance that contains the serialized data |
StockPt(PointPair)
The StockPt copy constructor.
Declaration
public StockPt(PointPair rhs)
Parameters
Type | Name | Description |
---|---|---|
PointPair | rhs | The basis for the copy. |
StockPt(StockPt)
The StockPt copy constructor.
Declaration
public StockPt(StockPt rhs)
Parameters
Type | Name | Description |
---|---|---|
StockPt | rhs | The basis for the copy. |
Fields
| Improve this Doc View SourceClose
This closing value
Declaration
public double Close
Field Value
Type | Description |
---|---|
Double |
Open
This opening value
Declaration
public double Open
Field Value
Type | Description |
---|---|
Double |
schema3
Current schema value that defines the version of the serialized file
Declaration
public const int schema3 = 11
Field Value
Type | Description |
---|---|
Int32 |
Vol
This daily trading volume
Declaration
public double Vol
Field Value
Type | Description |
---|---|
Double |
Properties
| Improve this Doc View SourceColorValue
The ColorValue property. This is used with the GradientByColorValue option.
Declaration
public override double ColorValue { get; set; }
Property Value
Type | Description |
---|---|
Double |
Overrides
| Improve this Doc View SourceDate
Map the Date property to the X value
Declaration
public double Date { get; set; }
Property Value
Type | Description |
---|---|
Double |
High
Map the high property to the Y value
Declaration
public double High { get; set; }
Property Value
Type | Description |
---|---|
Double |
IsInvalid5D
Readonly value that determines if either the Date, Close, Open, High, or Low coordinate in this StockPt is an invalid (not plotable) value. It is considered invalid if it is missing (equal to System.Double.Max), Infinity, or NaN.
Declaration
public bool IsInvalid5D { get; }
Property Value
Type | Description |
---|---|
Boolean | true if any value is invalid |
Low
Map the low property to the Z value
Declaration
public double Low { get; set; }
Property Value
Type | Description |
---|---|
Double |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo instance with the data needed to serialize the target object
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | A SerializationInfo instance that defines the serialized data |
StreamingContext | context | A StreamingContext instance that contains the serialized data |
Overrides
| Improve this Doc View SourceToString(Boolean)
Format this StockPt value using the default format. Example: "( 12.345, -16.876 )". The two double values are formatted with the "g" format type.
Declaration
public override string ToString(bool isShowAll)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isShowAll | true to show all the value coordinates |
Returns
Type | Description |
---|---|
String | A string representation of the StockPt. |
Overrides
| Improve this Doc View SourceToString(String, Boolean)
Format this PointPair value using a general format string.
Example: a format string of "e2" would give "( 1.23e+001, -1.69e+001 )".
If
Declaration
public override string ToString(string format, bool isShowAll)
Parameters
Type | Name | Description |
---|---|---|
String | format | A format string that will be used to format each of the two double type values (see ToString()). |
Boolean | isShowAll | true to show all the value coordinates |
Returns
Type | Description |
---|---|
String | A string representation of the PointPair |