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

AnnotationImageEditingEventArgs Class

Data for the ChartControl.AnnotationRepositoryChanging event that occurs when the image annotation is edited.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.2.dll

NuGet Package: DevExpress.Charts

Declaration

public sealed class AnnotationImageEditingEventArgs :
    AnnotationRepositoryChangingEventArgs

Remarks

You can use AnnotationImageEditingEventArgs if the AnnotationRepositoryChanging event occurs after a user edits the image annotation. Cast AnnotationRepositoryChangingEventArgs to the AnnotationImageEditingEventArgs type in the AnnotationRepositoryChanging event handler. AnnotationImageEditingEventArgs exposes the NewImageFileName property, which contains a file path to the new annotation’s image.

The following example gets the file path to the new annotation image:

 void chartControl1_AnnotationRepositoryChanging(object sender, AnnotationRepositoryChangingEventArgs e) {
    if (e.Change == AnnotationRepositoryChange.Image) {
    AnnotationImageEditingEventArgs imageEditingArgs = (AnnotationImageEditingEventArgs)e;
    string imageFile = imageEditingArgs.NewImageFileName;
    //Add your logic here. 
    }
 }    

Inheritance

See Also