Skip to main content

Annotation.RuntimeEditing Property

Specifies whether a user can edit the annotation.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v22.2.dll

NuGet Package: DevExpress.Charts


public bool RuntimeEditing { get; set; }

Property Value

Type Description

true, if a user is allowed to modify the annotation; otherwise, false (default).


When the RuntimeEditing property is enabled, a user can perform the following operations:

  • Click the Delete key to remove a selected annotation.
  • Double-click a text annotation to edit its content. Click Enter, Esc or a point outside the edit field to complete editing.
  • To add a new line to a text annotation, click Shift + Enter.
  • Double-click an image annotation and then select a new image in the invoked dialog.

The following code adds an annotation that a user can edit:

TextAnnotation annotation = new TextAnnotation();
annotation.AnchorPoint = new ChartAnchorPoint(200, 200);
annotation.RuntimeEditing = true;

Note: Users can use the Add Text Annotation or Add Image Annotation buttons (reside in the Chart’s Ribbon or Toolbars) to create new annotations with RuntimeEditing enabled.

See Also