Skip to main content

AnnotationImageEditingEventArgs.NewImageFileName Property

Gets or sets the path to a new annotation’s image.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v22.2.dll

NuGet Package: DevExpress.Charts


public string NewImageFileName { get; set; }

Property Value

Type Description

A file name that includes the file path.


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. 
See Also