All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

AnnotationImageEditingEventArgs Class

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

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

public sealed class AnnotationImageEditingEventArgs :
    AnnotationRepositoryChangingEventArgs
Public NotInheritable Class AnnotationImageEditingEventArgs
    Inherits 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