MindFusion.Charting for Silverlight Programmer's Guide
AnnotationsCollection Class
Remarks See Also
 






Represents an observable collection of Annotation objects.

Namespace: MindFusion.Charting.Silverlight
Assembly: MindFusion.Charting.Silverlight

 Syntax

C#  Copy Code

public class AnnotationsCollection : ObservableCollection<Annotation>

Visual Basic  Copy Code

Public Class AnnotationsCollection
    Inherits ObservableCollection(Of Annotation)

 Remarks

Add the Annotation-s for each BarSeries to this collection.

 Example

The following example creates an Annotation at position 10 that is a green point with label "Break" and adds it to the Annotations collection of the series.

C#  Copy Code

Annotation annotation1 = new Annotation();
annotation1.Index = 0;
annotation1.Label = "Break";
annotation1.Value = 10.0;
annotation1.AnnotationType = AnnotationType.Point;
annotation1.Fill = new SolidColorBrush(Colors.Green);
annotation1.Stroke = new SolidColorBrush(Colors.Green);
series.Annotations.Add(annotation1);

Visual Basic  Copy Code

Dim annotation1 As Annotation = New Annotation
annotation1.Index = 0
annotation1.Label = "Break"
annotation1.Value = 10
annotation1.AnnotationType = AnnotationType.Point
annotation1.Fill = New SolidColorBrush(Colors.Green)
annotation1.Stroke = New SolidColorBrush(Colors.Green)
series.Annotations.Add(annotation1)

 Inheritance Hierarchy

System.Object
    System.Collections.ObjectModel.Collection(Annotation)
        System.Collections.ObjectModel.ObservableCollection(Annotation)
            MindFusion.Charting.Silverlight.AnnotationsCollection

 See Also

AnnotationsCollection Members
MindFusion.Charting.Silverlight Namespace