AnnotationCollection

StockSharp.Xaml.Charting.Visuals.Annotations

Contiene una colección de tipos derivados de IAnotación, que permiten elementos de dibujo personalizados sobre o bajo el padre UltrachartSurface

Hereda de: ObservableCollection<IAnnotation>

Implementa: IXmlSerializable

Constructores

AnnotationCollection
public AnnotationCollection()
annotationCollection = AnnotationCollection()

Inicia una nueva instancia de la clase AnnotationCollection.

AnnotationCollection
public AnnotationCollection(IEnumerable<IAnnotation> collection)
annotationCollection = AnnotationCollection(collection)

Inicia una nueva instancia de la clase AnnotationCollection.

Propiedades

ParentSurface
public IUltrachartSurface ParentSurface { get; set; }
value = annotationCollection.ParentSurface
annotationCollection.ParentSurface = value

Obtiene o establece el padre UltrachartSurface para realizar operaciones en

Métodos

ClearItems
protected override void ClearItems()
annotationCollection.ClearItems()

Limpia todas las anotaciones del padre UltrachartSurface

DeselectAll
public void DeselectAll()
annotationCollection.DeselectAll()

Deselecciona todas las anotaciones en la AnnotationCollection

GetSchema
public XmlSchema GetSchema()
result = annotationCollection.GetSchema()

Devuelve un XmlSchema que describe la representación XML del objeto que se produce por el método WriteXml y consumido por el método ReadXml@

OnXAxesCollectionChanged
public void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
annotationCollection.OnXAxesCollectionChanged(sender, args)

Llamada con los cambios XAxes AxisCollection@

OnYAxesCollectionChanged
public void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
annotationCollection.OnYAxesCollectionChanged(sender, args)

Llamada con los cambios YAxes AxisCollection@

ReadXml
public void ReadXml(XmlReader reader)
annotationCollection.ReadXml(reader)

Genera AnnotationCollection desde su representación XML.

reader
RefreshPositions
public void RefreshPositions(RenderPassInfo rpi)
annotationCollection.RefreshPositions(rpi)

Refresca las posiciones de todas las anotaciones dentro de la colección

rpi
SubscribeSurfaceEvents
public void SubscribeSurfaceEvents(IUltrachartSurface parentSurface)
annotationCollection.SubscribeSurfaceEvents(parentSurface)

Suscribe el AnnotationCollection a eventos en el padre UltrachartSurface@. Debe ser llamado internamente por la API de Anotaciones al acoplamiento a una superficie.

parentSurface
El padre UltrachartSurface
TrySelectAnnotation
public bool TrySelectAnnotation(IAnnotation annotationBase)
result = annotationCollection.TrySelectAnnotation(annotationBase)

Intenta seleccionar la anotación, y devuelve si el intento fue exitoso o no

annotationBase
Anotación IAnotación para la selección
UnsubscribeSurfaceEvents
public void UnsubscribeSurfaceEvents(IUltrachartSurface parentSurface)
annotationCollection.UnsubscribeSurfaceEvents(parentSurface)

Dessubscribe el AnnotationCollection a eventos en el padre UltrachartSurface@. Debe ser llamado internamente por la API de Anotaciones al separarse de una superficie.

parentSurface
El padre UltrachartSurface
WriteXml
public void WriteXml(XmlWriter writer)
annotationCollection.WriteXml(writer)

Convierte AnnotationCollection en su representación XML.

writer