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.

Annotation.RuntimeEditing Property

Specifies whether a user can edit the annotation.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public bool RuntimeEditing { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)>
Public Property RuntimeEditing As Boolean

Property Value

Type Description
Boolean

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

Remarks

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;
chartControl1.AnnotationRepository.Add(annotation);

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