AnnotationCollection

StockSharp.Xaml.Charting.Visuals.Annotations

包含一个 In Notation 衍生类型的集合, 允许自定义绘图元素在母的 UltrachartSurface 上或下

继承自: ObservableCollection<IAnnotation>

实现: IXmlSerializable

构造函数

AnnotationCollection
public AnnotationCollection()
annotationCollection = AnnotationCollection()

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

AnnotationCollection
public AnnotationCollection(IEnumerable<IAnnotation> collection)
annotationCollection = AnnotationCollection(collection)

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

属性

ParentSurface
public IUltrachartSurface ParentSurface { get; set; }
value = annotationCollection.ParentSurface
annotationCollection.ParentSurface = value

获取或设置母机 UltrachartSurface 以运行

方法

ClearItems
protected override void ClearItems()
annotationCollection.ClearItems()

从父 &% UltrachartSurface\% 清除全部说明

DeselectAll
public void DeselectAll()
annotationCollection.DeselectAll()

取消选择 AnnotationCollection 中的所有注释

GetSchema
public XmlSchema GetSchema()
result = annotationCollection.GetSchema()

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

OnXAxesCollectionChanged
public void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
annotationCollection.OnXAxesCollectionChanged(sender, args)

使用 XAxes AxisCollection 更改调用

OnYAxesCollectionChanged
public void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
annotationCollection.OnYAxesCollectionChanged(sender, args)

使用 YAxes AxisCollection 更改调用

ReadXml
public void ReadXml(XmlReader reader)
annotationCollection.ReadXml(reader)

从它的XML 代表生成 AnnotationCollection 。

reader
RefreshPositions
public void RefreshPositions(RenderPassInfo rpi)
annotationCollection.RefreshPositions(rpi)

刷新收藏中所有注释的位置

rpi
SubscribeSurfaceEvents
public void SubscribeSurfaceEvents(IUltrachartSurface parentSurface)
annotationCollection.SubscribeSurfaceEvents(parentSurface)

订阅 AnnotationCollection 用于母体 UltrachartSurface 上的事件。 内部应该由 说明 API 连接到表面时调用 。

parentSurface
The parent UltrachartSurface
TrySelectAnnotation
public bool TrySelectAnnotation(IAnnotation annotationBase)
result = annotationCollection.TrySelectAnnotation(annotationBase)

尝试选择注释, 返回是否成功

annotationBase
供选择的注释
UnsubscribeSurfaceEvents
public void UnsubscribeSurfaceEvents(IUltrachartSurface parentSurface)
annotationCollection.UnsubscribeSurfaceEvents(parentSurface)

取消对父机上的事件的订阅。 内部应该由 说明 API 调用 。

parentSurface
The parent UltrachartSurface
WriteXml
public void WriteXml(XmlWriter writer)
annotationCollection.WriteXml(writer)

Converts AnnotationCollection into its XML representation.

writer