Back to Devexpress

AnnotationRepositoryChangedEventArgs Class

corelibraries-devexpress-dot-xtracharts-bc5b3cae.md

latest2.8 KB
Original Source

AnnotationRepositoryChangedEventArgs Class

Data for the ChartControl.AnnotationRepositoryChanged event.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public class AnnotationRepositoryChangedEventArgs :
    EventArgs
vb
Public Class AnnotationRepositoryChangedEventArgs
    Inherits EventArgs

AnnotationRepositoryChangedEventArgs is the data class for the following events:

Remarks

The AnnotationRepositoryChanged event occurs after a user adds, edits or deletes an annotation. The AnnotationRepositoryChangedEventArgs class exposes the following properties:

Example

The following example gets the type of the annotation change and annotation object:

csharp
void chartControl1_AnnotationRepositoryChanged(object sender, AnnotationRepositoryChangedEventArgs e) {
  AnnotationRepositoryChange lastChange = e.Change;
  Annotation myAnnotation = e.Annotation;
  //Add your logic here. 
}
vb
Private Sub chartControl1_AnnotationRepositoryChanged(ByVal sender As Object, ByVal e As AnnotationRepositoryChangedEventArgs)
  Dim lastChange As AnnotationRepositoryChange = e.Change
  Dim myAnnotation As Annotation = e.Annotation
  'Add your logic here. 
End Sub

Inheritance

Object EventArgs AnnotationRepositoryChangedEventArgs

See Also

AnnotationRepositoryChangedEventArgs Members

AnnotationRepositoryChanged

Annotations

DevExpress.XtraCharts Namespace