AnnotationRepositoryChangingEventArgs.Change Property
In This Article
Returns the AnnotationRepositoryChange value that indicates the type of change a user makes.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
NuGet Package: DevExpress.Charts
#Declaration
public AnnotationRepositoryChange Change { get; }
#Property Value
Type | Description |
---|---|
Annotation |
An annotation change that a user makes. |
Available values:
Name | Description |
---|---|
Addition | A user adds an annotation. |
Deletion | A user deletes an annotation. |
Text | A user edits annotation text. |
Image | A user changes an annotation image. |
#Remarks
The Change property can be set to the following values:
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