AnnotationImageEditingEventArgs.NewImageFileName Property
Gets or sets the path to a new annotation’s image.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.1.dll
NuGet Package: DevExpress.Charts
Declaration
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