AxisCollection

StockSharp.Xaml.Charting

包含轴的集合, 并允许通过 ID 获取轴

继承自: ObservableCollection<IAxis>

实现: IXmlSerializable

构造函数

AxisCollection
public AxisCollection()
axisCollection = AxisCollection()

初始化了 & ##AxisCollection+# 类的新实例 。

AxisCollection
public AxisCollection(IEnumerable<IAxis> collection)
axisCollection = AxisCollection(collection)

初始化了 & ##AxisCollection+# 类的新实例 。

collection
所集经.

属性

Default
public IAxis Default { get; }
value = axisCollection.Default

获得默认轴, 与 DefaultAxisId 轴等同, 否则无效

HasPrimaryAxis
protected bool HasPrimaryAxis { get; }
value = axisCollection.HasPrimaryAxis

如果收藏中的轴中有 IsPrimaryAxis 设置为真, 返回为真

PrimaryAxis
protected IAxis PrimaryAxis { get; }
value = axisCollection.PrimaryAxis

获取收藏中的主轴。 这是第一个 IsPrimaryAxis 设置为对, 如果不存在则无效 。

方法

GetAxisById
public IAxis GetAxisById(string axisId, bool assertAxisExists)
result = axisCollection.GetAxisById(axisId, assertAxisExists)

获得 Id 指定的轴, 否则为无效

axisId
轴标识符 。
assertAxisExists
如果设置为真实的平方,则抛出轴。
GetSchema
public XmlSchema GetSchema()
result = axisCollection.GetSchema()

返回一个 XmlSchema, 描述由 WriteXml 方法所生成、 由 ReadXml 方法所消耗的物体的 XML 表示

ReadXml
public virtual void ReadXml(XmlReader reader)
axisCollection.ReadXml(reader)

从它的XML 代表生成 AxisCollection 。

reader
WriteXml
public virtual void WriteXml(XmlWriter writer)
axisCollection.WriteXml(writer)

Converts AxisCollection into its XML representation.

writer