ChartBandElement
StockSharp.Xaml.Charting
The chart element representing a band.
Inherits: ChartElement<ChartBandElement>
Implements: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IAsyncPersistable, IChartBandElement
Constructors
Properties
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
The band drawing style. The default is Band. Can also be BandOneValue.
Methods
CheckAxesCompatible
public override bool CheckAxesCompatible(ChartAxisType? xType, ChartAxisType? yType)
result = chartBandElement.CheckAxesCompatible(xType, yType)
Check if the element can be drawn using supplied axis types.
- xType
- X axis type.
- yType
- Y axis type.
Returns: if supplied types are supported.
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartBandElement.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
OnDraw
protected override bool OnDraw(ChartDrawData data)
result = chartBandElement.OnDraw(data)
Draw on root element.
- data
- Chart drawing data.
Returns: if the data was successfully drawn, otherwise, returns .
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartBandElement.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task