Class Y2AxisList
A collection class containing a list of YAxis objects.
Implements
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class Y2AxisList : List<Y2Axis>, IList<Y2Axis>, ICollection<Y2Axis>, IEnumerable<Y2Axis>, IList, ICollection, IEnumerable, ICloneable
Constructors
| Improve this Doc View SourceY2AxisList()
Default constructor for the collection class.
Declaration
public Y2AxisList()
Y2AxisList(Y2AxisList)
The Copy Constructor
Declaration
public Y2AxisList(Y2AxisList rhs)
Parameters
Type | Name | Description |
---|---|---|
Y2AxisList | rhs | The Y2AxisList object from which to copy |
Properties
| Improve this Doc View SourceItem[Int32]
Indexer to access the specified Axis object by its ordinal position in the list.
Declaration
public Y2Axis this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The ordinal position (zero-based) of the YAxis object to be accessed. |
Property Value
Type | Description |
---|---|
Y2Axis | An Axis object reference. |
Item[String]
Declaration
public Y2Axis this[string title] { get; }
Parameters
Type | Name | Description |
---|---|---|
String | title | The string title of the YAxis object to be accessed. |
Property Value
Type | Description |
---|---|
Y2Axis | A Axis object reference. |
Methods
| Improve this Doc View SourceAdd(String)
Create a new Y2Axis and add it to this list.
Declaration
public int Add(string title)
Parameters
Type | Name | Description |
---|---|---|
String | title | The title string for the new axis |
Returns
Type | Description |
---|---|
Int32 | An integer representing the ordinal position of the new Y2Axis in this Y2AxisList. This is the value that you would set the YAxisIndex property of a given CurveItem to assign it to this new Y2Axis. Note that, for a Y2Axis, you would also need to set the IsY2Axis property to true. |
Clone()
Typesafe, deep-copy clone method.
Declaration
public Y2AxisList Clone()
Returns
Type | Description |
---|---|
Y2AxisList | A new, independent copy of this class |
IndexOf(String)
Declaration
public int IndexOf(string title)
Parameters
Type | Name | Description |
---|---|---|
String | title | The String label that is in the Title attribute of the item to be found. |
Returns
Type | Description |
---|---|
Int32 | The zero-based index of the specified Axis, or -1 if the Title was not found in the list |
Remarks
The comparison of titles is not case sensitive, but it must include all characters including punctuation, spaces, etc.
See Also
| Improve this Doc View SourceIndexOfTag(String)
Declaration
public int IndexOfTag(string tagStr)
Parameters
Type | Name | Description |
---|---|---|
String | tagStr | The String tag that is in the Tag attribute of the item to be found. |
Returns
Type | Description |
---|---|
Int32 | The zero-based index of the specified Axis, or -1 if the Tag string is not in the list |
Remarks
See Also
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 |