All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

AnnotationTextEditingEventArgs Class

Data for the ChartControl.AnnotationRepositoryChanging event that occurs when the text annotation is edited.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

public sealed class AnnotationTextEditingEventArgs :
    AnnotationRepositoryChangingEventArgs
Public NotInheritable Class AnnotationTextEditingEventArgs
    Inherits AnnotationRepositoryChangingEventArgs

Remarks

You can use AnnotationTextEditingEventArgs if the AnnotationRepositoryChanging event occurs after a user edits the text annotation. Cast the AnnotationRepositoryChangingEventArgs to the AnnotationTextEditingEventArgs type in the AnnotationRepositoryChanging event handler. AnnotationTextEditingEventArgs exposes the NewText property, which contains the new annotation's text.

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. 
  }    
}

Inheritance

See Also