Skip to main content

AnnotationTextEditingEventArgs.NewText Property

Gets or sets a new annotation’s text.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.2.dll

Declaration

public string NewText { get; set; }

Property Value

Type Description
String

A new annotation’s text.

Remarks

The following example gets the new annotation’s text:

void chartControl1_AnnotationRepositoryChanging(object sender, AnnotationRepositoryChangingEventArgs e) {
  if (e.Change == AnnotationRepositoryChange.Text) {
      AnnotationTextEditingEventArgs textEditingArgs = (AnnotationTextEditingEventArgs)e;
      string newAnnotationText = textEditingArgs.NewText;
      //Add your logic here. 
  }    
}
See Also