ChartBandElement

StockSharp.Xaml.Charting

El elemento gráfico que representa una banda.

Hereda de: ChartElement<ChartBandElement>

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

Constructores

ChartBandElement
public ChartBandElement()
chartBandElement = ChartBandElement()

Crear instancia.

Propiedades

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

Línea 1.

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

Línea 2.

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

El estilo de dibujo de banda. El predeterminado es Band. También puede ser BandOneValue.

Métodos

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

Compruebe si el elemento puede ser dibujado utilizando tipos de eje suministrado.

xType
Tipo X de eje.
yType
Tipo de eje Y.

Devuelve: si se admiten tipos suministrados.

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

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Devuelve: Task

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

Dibuja sobre el elemento raíz.

data
Datos de dibujo de gráficos.

Devuelve: si los datos se dibujaron con éxito, de lo contrario, devuelve .

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

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Devuelve: Task