ChartAnnotation
StockSharp.Xaml.Charting
Anotación.
Hereda de: ChartElement<ChartAnnotation>
Implementa: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IAsyncPersistable, IChartAnnotationElement
Constructores
ChartAnnotation
public ChartAnnotation()
chartAnnotation = ChartAnnotation()
Inicia una nueva instancia de la ChartAnnotation.
Propiedades
Type
public ChartAnnotationTypes Type { get; set; }
value = chartAnnotation.Type
chartAnnotation.Type = value
Tipo de anotación.
Métodos
CopyTo
internal override ChartAnnotation CopyTo(ChartAnnotation elem)
result = chartAnnotation.CopyTo(elem)
Para rellenar una copia del elemento.
- elem
- Copiado.
Devuelve: Copiado.
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.
Devuelve: A task that represents the asynchronous load operation.
OnDraw
protected override bool OnDraw(ChartDrawData data)
result = chartAnnotation.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 = 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.
Devuelve: A task that represents the asynchronous save operation.