All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ChartControl.AnnotationRepositoryChanged Event

Occurs after a user adds, edits or deletes an annotation.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.UI.dll

Declaration

public event AnnotationRepositoryChangedEventHandler AnnotationRepositoryChanged
Public Event AnnotationRepositoryChanged As AnnotationRepositoryChangedEventHandler

Event Data

The AnnotationRepositoryChanged event's data class is AnnotationRepositoryChangedEventArgs. The following properties provide information specific to this event:

Property Description
Annotation Returns the changed annotation.
Change Returns the AnnotationRepositoryChange value that indicates the type of change a user makes.

Remarks

Users can utilize the Add Text Annotation and Add Image Annotation buttons in the Chart's Ribbon or Toolbars to add interactive annotations. They can also edit or delete an annotation if the Annotation.RuntimeEditing property is set to true.

The e.Change property returns an operation that a user performs. The Change property can be set to the following values:

The e.Annotation property returns the changed annotation.

The following example gets a type of the annotation change and the annotation object:

void chartControl1_AnnotationRepositoryChanged(object sender, AnnotationRepositoryChangedEventArgs e) {
  AnnotationRepositoryChange lastChange = e.Change;
  Annotation myAnnotation = e.Annotation;
  //Add your logic here. 
} 
See Also