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

AnnotationRepositoryChangingEventArgs.Annotation Property

Returns the annotation that is being changed.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v22.1.dll

NuGet Package: DevExpress.Charts

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