AnnotationRepositoryChangingEventArgs.Cancel Property
In This Article
Indicates whether to cancel the annotation change.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
NuGet Package: DevExpress.Charts
#Declaration
#Property Value
Type | Description |
---|---|
Boolean | true, if the annotation change should be canceled; otherwise false. |
#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