Class YAxisList
A collection class containing a list of YAxis objects.
Implements
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class YAxisList : List<YAxis>, IList<YAxis>, ICollection<YAxis>, IEnumerable<YAxis>, IList, ICollection, IEnumerable, ICloneable
Constructors
| Improve this Doc View SourceYAxisList()
Default constructor for the collection class.
Declaration
public YAxisList()
YAxisList(YAxisList)
The Copy Constructor
Declaration
public YAxisList(YAxisList rhs)
Parameters
Type | Name | Description |
---|---|---|
YAxisList | rhs | The YAxisList 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 YAxis 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 |
---|---|
YAxis | An Axis object reference. |
Item[String]
Declaration
public YAxis this[string title] { get; }
Parameters
Type | Name | Description |
---|---|---|
String | title | The string title of the YAxis object to be accessed. |
Property Value
Type | Description |
---|---|
YAxis | A Axis object reference. |
Methods
| Improve this Doc View SourceAdd(String)
Create a new YAxis 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 YAxis in this YAxisList. This is the value that you would set the YAxisIndex property of a given CurveItem to assign it to this new YAxis. |
Clone()
Typesafe, deep-copy clone method.
Declaration
public YAxisList Clone()
Returns
Type | Description |
---|---|
YAxisList | 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
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 |