Skip to main content

AnnotationImageEditingEventArgs.NewImageFileName Property

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

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.2.dll

Declaration

public string NewImageFileName { get; set; }

Property Value

Type Description
String

A file name that includes the file path.

Remarks

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