AxisCollection
StockSharp.Xaml.Charting
Contains a collection of Axes and allows getting of axis by Id
继承自: ObservableCollection<IAxis>
实现: IXmlSerializable
构造函数
AxisCollection()
Initializes a new instance of the AxisCollection class.
AxisCollection(IEnumerable<IAxis>)
Initializes a new instance of the AxisCollection class.
- collection
- The collection.
属性
HasPrimaryAxis : bool
Returns true if any of the Axes in the collection have IsPrimaryAxis set to true
PrimaryAxis : IAxis
Gets the primary axis in the collection. This is the first that has IsPrimaryAxis set to true, or null if none exists.
方法
GetAxisById(string, bool) : IAxis
Gets the axis specified by Id, else null
- axisId
- The axis identifier.
- assertAxisExists
- if set to true assert and throw if the axis does not exist.