corelibraries-devexpress-dot-xtracharts-459bf9bb.md
Data for the ChartControl.AnnotationRepositoryChanging event.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public class AnnotationRepositoryChangingEventArgs :
EventArgs
Public Class AnnotationRepositoryChangingEventArgs
Inherits EventArgs
AnnotationRepositoryChangingEventArgs is the data class for the following events:
The AnnotationRepositoryChanging event occurs when a user adds, edits or deletes an annotation before this change is applied to the annotation repository. The AnnotationRepositoryChangingEventArgs class exposes the following properties:
The following example prevents Annotation1 from being deleted.
void chartControl1_AnnotationRepositoryChanging(object sender, AnnotationRepositoryChangingEventArgs e) {
if (e.Annotation.Name == "Annotation1" && e.Change == AnnotationRepositoryChange.Deletion) {
e.Cancel = true;
}
}
Private Sub chartControl1_AnnotationRepositoryChanging(ByVal sender As Object, ByVal e As AnnotationRepositoryChangingEventArgs)
If e.Annotation.Name = "Annotation 1" AndAlso e.Change = AnnotationRepositoryChange.Deletion Then
e.Cancel = True
End If
End Sub
Object EventArgs AnnotationRepositoryChangingEventArgs AnnotationImageEditingEventArgs
AnnotationTextEditingEventArgs
See Also