ChartBandElement

StockSharp.Xaml.Charting

O elemento gráfico que representa uma banda.

Herda de: ChartElement<ChartBandElement>

Implementa: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IAsyncPersistable, IChartBandElement

Construtores

ChartBandElement
public ChartBandElement()
chartBandElement = ChartBandElement()

Criar instância.

Propriedades

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.

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

Linha 1.

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

Linha 2.

Style
public DrawStyles Style { get; set; }
value = chartBandElement.Style
chartBandElement.Style = value

O estilo de desenho da banda. O padrão é Band. Também pode ser BandOneValue.

Métodos

CheckAxesCompatible
public override bool CheckAxesCompatible(ChartAxisType? xType, ChartAxisType? yType)
result = chartBandElement.CheckAxesCompatible(xType, yType)

Verifique se o elemento pode ser desenhado usando tipos de eixo fornecidos.

xType
Tipo de eixo X.
yType
Tipo de eixo Y.

Retorna: se os tipos fornecidos forem suportados.

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartBandElement.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Retorna: Task

OnDraw
protected override bool OnDraw(ChartDrawData data)
result = chartBandElement.OnDraw(data)

Desenhar o elemento raiz.

data
Dados de desenho do gráfico.

Retorna: se os dados foram desenhados com sucesso, caso contrário, retorna .

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartBandElement.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Retorna: Task