ChartBandElement

StockSharp.Xaml.Charting

The chart element representing a band.

Inherits: ChartElement<ChartBandElement>

Implements: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IPersistable, IChartBandElement

Constructors

ChartBandElement
public ChartBandElement()
chartBandElement = ChartBandElement()

Create instance.

Properties

Line1
public ChartLineElement Line1 { get; }
value = chartBandElement.Line1

Line1.

Line2
public ChartLineElement Line2 { get; }
value = chartBandElement.Line2

Line2.

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.

Load
public override void Load(SettingsStorage storage)
chartBandElement.Load(storage)

Load settings.

storage
Settings storage.
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 .

Save
public override void Save(SettingsStorage storage)
chartBandElement.Save(storage)

Save settings.

storage
Settings storage.