ChartAnnotation
StockSharp.Xaml.Charting
Anotação.
Herda de: ChartElement<ChartAnnotation>
Implementa: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IAsyncPersistable, IChartAnnotationElement
Construtores
ChartAnnotation
public ChartAnnotation()
chartAnnotation = ChartAnnotation()
Inicializa uma nova instância do ChartAnnotation.
Propriedades
Type
public ChartAnnotationTypes Type { get; set; }
value = chartAnnotation.Type
chartAnnotation.Type = value
Tipo de anotação.
Métodos
CopyTo
internal override ChartAnnotation CopyTo(ChartAnnotation elem)
result = chartAnnotation.CopyTo(elem)
Para preencher uma cópia do elemento.
- elem
- Entendido.
Retorna: Entendido.
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartAnnotation.LoadAsync(storage, cancellationToken)
Asynchronously loads the state of the object from the specified SettingsStorage.
- storage
- The SettingsStorage instance from which to load the data.
- cancellationToken
- A token to monitor for cancellation requests.
Retorna: A task that represents the asynchronous load operation.
OnDraw
protected override bool OnDraw(ChartDrawData data)
result = chartAnnotation.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 = chartAnnotation.SaveAsync(storage, cancellationToken)
Asynchronously saves the state of the object to the specified SettingsStorage.
- storage
- The SettingsStorage instance to which to save the data.
- cancellationToken
- A token to monitor for cancellation requests.
Retorna: A task that represents the asynchronous save operation.