ChartOrderElement

StockSharp.Xaml.Charting

代表命令的图表元素。

继承自: ChartTransactionElement<ChartOrderElement>

实现: IChartOrderElement, IChartTransactionElement, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IAsyncPersistable

构造函数

ChartOrderElement
public ChartOrderElement()
chartOrderElement = ChartOrderElement()

Initialize ChartOrderElement.

属性

ErrorColor
public Color ErrorColor { get; set; }
value = chartOrderElement.ErrorColor
chartOrderElement.ErrorColor = value

填充交易出错的颜色 。

ErrorStrokeColor
public Color ErrorStrokeColor { get; set; }
value = chartOrderElement.ErrorStrokeColor
chartOrderElement.ErrorStrokeColor = value

填充交易出错的颜色 。

Filter
public ChartOrderDisplayFilter Filter { get; set; }
value = chartOrderElement.Filter
chartOrderElement.Filter = value

命令显示过滤器 。

方法

CopyTo
internal override ChartOrderElement CopyTo(ChartOrderElement elem)
result = chartOrderElement.CopyTo(elem)
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartOrderElement.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 = chartOrderElement.OnDraw(data)

绘制根元素 。

data
图表绘图数据。

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

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartOrderElement.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.