Back to Devexpress

AnnotationRepositoryChangedEventArgs.Change Property

corelibraries-devexpress-dot-xtracharts-dot-annotationrepositorychangedeventargs-f3909fe6.md

latest2.7 KB
Original Source

AnnotationRepositoryChangedEventArgs.Change Property

Returns the AnnotationRepositoryChange value that indicates the type of change a user makes.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public AnnotationRepositoryChange Change { get; }
vb
Public ReadOnly Property Change As AnnotationRepositoryChange

Property Value

TypeDescription
AnnotationRepositoryChange

An annotation change that a user makes.

|

Available values:

NameDescription
Addition

A user adds an annotation.

| | Deletion |

A user deletes an annotation.

| | Text |

A user edits annotation text.

| | Image |

A user changes an annotation image.

|

Remarks

The Change property can be set to the following values:

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

See Also

AnnotationRepositoryChangedEventArgs Class

AnnotationRepositoryChangedEventArgs Members

DevExpress.XtraCharts Namespace