Skip to main content
A newer version of this page is available. .

AnnotationCollection.AddImageAnnotation() Method

Appends the specified ImageAnnotation object to the current collection.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

public ImageAnnotation AddImageAnnotation()

Returns

Type Description
ImageAnnotation

An ImageAnnotation object representing the image annotation to be added.

Remarks

This method adds an ImageAnnotation object with the default settings to the annotations collection of a chart, pane or series point.

To add an image annotation with the specified options, use the overloaded AddImageAnnotation methods with the name and image (or, imageUrl) parameters.

After an annotation is added to an element’s collection, it can be accessed via the corresponding property of this element (ChartControl.Annotations, XYDiagramPaneBase.Annotations, or SeriesPoint.Annotations). Alternatively, to centrally access all annotations that are present in a chart control, use the ChartControl.AnnotationRepository property.

For more information, refer to Annotations.

See Also