AnnotationCollection

StockSharp.Xaml.Charting.Visuals.Annotations

Contains a collection of IAnnotation derived types, which allow custom drawing elements over or under the parent UltrachartSurface

Erbt von: ObservableCollection<IAnnotation>

Implementiert: IXmlSerializable

Konstruktoren

AnnotationCollection()

Initializes a new instance of the AnnotationCollection class.

AnnotationCollection(IEnumerable<IAnnotation>)

Initializes a new instance of the AnnotationCollection class.

Eigenschaften

ParentSurface : IUltrachartSurface

Gets or sets the parent UltrachartSurface to perform operations on

Methoden

ClearItems()

Clears all Annotations from the parent UltrachartSurface

DeselectAll()

Deselects all annotations in the AnnotationCollection

GetSchema() : XmlSchema

Returns an XmlSchema that describes the XML representation of the object that is produced by the WriteXml method and consumed by the ReadXml method

OnXAxesCollectionChanged(object, NotifyCollectionChangedEventArgs)

Called with the XAxesAxisCollection changes

OnYAxesCollectionChanged(object, NotifyCollectionChangedEventArgs)

Called with the YAxesAxisCollection changes

ReadXml(XmlReader)

Generates AnnotationCollection from its XML representation.

reader
RefreshPositions(RenderPassInfo)

Refreshes positions of all annotations within the collection

rpi
SubscribeSurfaceEvents(IUltrachartSurface)

Subscribes the AnnotationCollection to events on the parent UltrachartSurface. Should be called internally by the Annotations API when attaching to a surface.

parentSurface
The parent UltrachartSurface
TrySelectAnnotation(IAnnotation) : bool

Gets attempt to select annotation, and returns whether attempt was successful or not

annotationBase
Annotation IAnnotation for selection
UnsubscribeSurfaceEvents(IUltrachartSurface)

Unsubscribes the AnnotationCollection to events on the parent UltrachartSurface. Should be called internally by the Annotations API when detaching from a surface.

parentSurface
The parent UltrachartSurface
WriteXml(XmlWriter)

Converts AnnotationCollection into its XML representation.

writer