Table of Contents

Class ChartBandElement

Namespace
StockSharp.Xaml.Charting
Assembly
StockSharp.Xaml.Charting.dll

The chart element representing a band.

public sealed class ChartBandElement : ChartElement<ChartBandElement>, IChartPart<ChartBandElement>, IChartBandElement, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IPersistable
Inheritance
ChartBandElement
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

ChartBandElement()

Create instance.

public ChartBandElement()

Properties

Line1

public ChartLineElement Line1 { get; }

Property Value

ChartLineElement

Line2

public ChartLineElement Line2 { get; }

Property Value

ChartLineElement

Style

The band drawing style. The default is Ecng.Drawing.DrawStyles.Band. Can also be Ecng.Drawing.DrawStyles.BandOneValue.

[Browsable(false)]
public DrawStyles Style { get; set; }

Property Value

DrawStyles

Methods

CheckAxesCompatible(ChartAxisType?, ChartAxisType?)

Check if the element can be drawn using supplied axis types.

public override bool CheckAxesCompatible(ChartAxisType? xType, ChartAxisType? yType)

Parameters

xType ChartAxisType?

X axis type.

yType ChartAxisType?

Y axis type.

Returns

bool

true if supplied types are supported.

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnDraw(ChartDrawData)

Draw on root element.

protected override bool OnDraw(ChartDrawData data)

Parameters

data ChartDrawData

Chart drawing data.

Returns

bool

true if the data was successfully drawn, otherwise, returns false.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.