ChartBandElement
StockSharp.Xaml.Charting
代表一个乐队的图表元素。
继承自: ChartElement<ChartBandElement>
实现: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IAsyncPersistable, IChartBandElement
构造函数
属性
DrawnPoints
internal IReadOnlyList<ChartDrawnPoint> DrawnPoints { get; }
value = chartBandElement.DrawnPoints
The points the element has drawn, in the order of the horizontal axis; none before it has been placed on an area.
Style
public DrawStyles Style { get; set; }
value = chartBandElement.Style
chartBandElement.Style = value
乐队的绘画风格。 默认为 Band。 也可以是 BandOneValue 。
方法
CheckAxesCompatible
public override bool CheckAxesCompatible(ChartAxisType? xType, ChartAxisType? yType)
result = chartBandElement.CheckAxesCompatible(xType, yType)
检查元素是否可用所提供轴类型绘制 。
- xType
- X轴类型。
- yType
- Y轴类型.
返回值: 如果支持所提供类型。
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartBandElement.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
返回值: Task
OnDraw
protected override bool OnDraw(ChartDrawData data)
result = chartBandElement.OnDraw(data)
绘制根元素 。
- data
- 图表绘图数据。
返回值: 如果数据已成功绘制,否则返回。
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartBandElement.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
返回值: Task