Skip to main content

AnnotationRepositoryChangingEventArgs.Annotation Property

Returns the annotation that is being changed.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.2.dll

Declaration

public Annotation Annotation { get; }

Property Value

Type Description
Annotation

The changed annotation.

Remarks

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;
    }
}
See Also