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.

属性

Default : IAxis

Gets the default axis, which is equal to the axis with the DefaultAxisId, else null

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.
GetSchema() : XmlSchema

Returns an XmlSchema that describes the XML representation of the object that is produced by the WriteXml method and consumed by the ReadXml method

ReadXml(XmlReader)

Generates AxisCollection from its XML representation.

reader
WriteXml(XmlWriter)

Converts AxisCollection into its XML representation.

writer