corelibraries-devexpress-dot-xtracharts-dot-annotationimageeditingeventargs.md
Gets or sets the path to a new annotation’s image.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public string NewImageFileName { get; set; }
Public Property NewImageFileName As String
| Type | Description |
|---|---|
| String |
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.
}
}
Private Sub chartControl1_AnnotationRepositoryChanging(ByVal sender As Object, ByVal e As AnnotationRepositoryChangingEventArgs)
If e.Change = AnnotationRepositoryChange.Image Then
Dim imageEditingArgs As AnnotationImageEditingEventArgs = CType(e, AnnotationImageEditingEventArgs)
Dim imageFile As String = imageEditingArgs.NewImageFileName
End If
'Add your logic here.
End Sub
See Also
AnnotationImageEditingEventArgs Class