Visual Basic (Declaration) | |
---|---|
Public Class Annotation Inherits Box |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class Annotation : Box |
The following code snippet demonstrates using an annotation to simulate a text
link on the chart.
Visual Basic | Copy Code |
---|---|
Dim a2 As Annotation = New Annotation("Annotation text.") |
C# | Copy Code |
---|---|
Annotation a2 = new Annotation("Annotation text."); |
Annotations can either be instantiated for an
Element or added to the
Chart.Annotation collection. When attached to an element, the annotation will follow
the element's position (unless specified) and have a spike indicating which element
it's referring to.
When an annotation does not have a size or any text specified and it's Background has an image, the size is will become that of the background's image.
When an annotation does not have a size or any text specified and it's Background has an image, the size is will become that of the background's image.
System.Object
dotnetCHARTING.Box
dotnetCHARTING.Annotation