MindFusion.Charting for Silverlight Programmer's Guide
Annotation.Stroke Property
See Also
 






Gets or sets the stroke of the annotation.

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

 Syntax

C#  Copy Code

public Brush Stroke { get; set; }

Visual Basic  Copy Code

Public Property Stroke As Brush

 Property Value

An object of type System.Windows.Media.Brush. Default value is a red SolidColorBrush.

 Remarks

The property is used for drawing annotations with AnnotationType set to AnnotationType.Stick or the outline of the circle when the AnnotationType is AnnotationType.Point.

 Example

The following example adds an annotation as a point at value 10 to the first bar in a BarSeries 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.Gre en);
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)

 See Also

Annotation Members
Annotation Class
MindFusion.Charting.Silverlight Namespace