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

AnnotationImageEditingEventArgs.NewImageFileName Property

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

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

NuGet Packages: DevExpress.Charts, DevExpress.WindowsDesktop.Charts

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