Skip to main content
A newer version of this page is available. .

AnnotationTextEditingEventArgs.NewText Property

Gets or sets a new annotation’s text.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

NuGet Packages: DevExpress.Charts, DevExpress.WindowsDesktop.Charts

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