ImageAnnotation(String, String) Constructor
Initializes a new instance of the ImageAnnotation class with the specified name and image URL.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
name | String | A String value specifying the annotation’s name. This value is assigned to the ChartElementNamed.Name property. |
imageUrl | String | A String value which specifies an URL to the annotation’s image. |
Remarks
Use this constructor to create an image annotation within a WebChartControl. For a ChartControl, use the overloaded .ctor method with the image parameter.
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.