AnnotationCollection
Contains a collection of IAnnotation derived types, which allow custom drawing elements over or under the parent UltrachartSurface
Inherits: ObservableCollection<IAnnotation>
Implements: IXmlSerializable
Constructors
public AnnotationCollection()
annotationCollection = AnnotationCollection()
Initializes a new instance of the AnnotationCollection class.
public AnnotationCollection(IEnumerable<IAnnotation> collection)
annotationCollection = AnnotationCollection(collection)
Initializes a new instance of the AnnotationCollection class.
Properties
public IUltrachartSurface ParentSurface { get; set; }
value = annotationCollection.ParentSurface
annotationCollection.ParentSurface = value
Gets or sets the parent UltrachartSurface to perform operations on
Methods
protected override void ClearItems()
annotationCollection.ClearItems()
Clears all Annotations from the parent UltrachartSurface
public void DeselectAll()
annotationCollection.DeselectAll()
Deselects all annotations in the AnnotationCollection
public XmlSchema GetSchema()
result = annotationCollection.GetSchema()
Returns an XmlSchema that describes the XML representation of the object that is produced by the WriteXml method and consumed by the ReadXml method
public void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
annotationCollection.OnXAxesCollectionChanged(sender, args)
Called with the XAxesAxisCollection changes
public void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
annotationCollection.OnYAxesCollectionChanged(sender, args)
Called with the YAxesAxisCollection changes
public void ReadXml(XmlReader reader)
annotationCollection.ReadXml(reader)
Generates AnnotationCollection from its XML representation.
- reader
public void RefreshPositions(RenderPassInfo rpi)
annotationCollection.RefreshPositions(rpi)
Refreshes positions of all annotations within the collection
- rpi
public void SubscribeSurfaceEvents(IUltrachartSurface parentSurface)
annotationCollection.SubscribeSurfaceEvents(parentSurface)
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
public bool TrySelectAnnotation(IAnnotation annotationBase)
result = annotationCollection.TrySelectAnnotation(annotationBase)
Gets attempt to select annotation, and returns whether attempt was successful or not
- annotationBase
- Annotation IAnnotation for selection
public void UnsubscribeSurfaceEvents(IUltrachartSurface parentSurface)
annotationCollection.UnsubscribeSurfaceEvents(parentSurface)
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
public void WriteXml(XmlWriter writer)
annotationCollection.WriteXml(writer)
Converts AnnotationCollection into its XML representation.
- writer