ChartAnnotation

StockSharp.Xaml.Charting

注释.

继承自: ChartElement<ChartAnnotation>

实现: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IAsyncPersistable, IChartAnnotationElement

构造函数

ChartAnnotation
public ChartAnnotation()
chartAnnotation = ChartAnnotation()

初始化了 & ##ChartAnnotation+#的新实例.

属性

Type
public ChartAnnotationTypes Type { get; set; }
value = chartAnnotation.Type
chartAnnotation.Type = value

注释类型.

方法

CopyTo
internal override ChartAnnotation CopyTo(ChartAnnotation elem)
result = chartAnnotation.CopyTo(elem)

以填出一分元素相.

elem
收到了,我们得去查查

返回值: 收到了,我们得去查查

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartAnnotation.LoadAsync(storage, cancellationToken)

Asynchronously loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
cancellationToken
A token to monitor for cancellation requests.

返回值: A task that represents the asynchronous load operation.

OnDraw
protected override bool OnDraw(ChartDrawData data)
result = chartAnnotation.OnDraw(data)

绘制根元素 。

data
图表绘图数据。

返回值: 如果数据已成功绘制,否则返回。

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartAnnotation.SaveAsync(storage, cancellationToken)

Asynchronously saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.
cancellationToken
A token to monitor for cancellation requests.

返回值: A task that represents the asynchronous save operation.