corelibraries-devexpress-dot-xtracharts-dot-annotation-4c3a9f8b.md
Specifies whether a user can edit the annotation.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public bool RuntimeEditing { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)>
Public Property RuntimeEditing As Boolean
| Type | Description |
|---|---|
| Boolean |
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:
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);
Dim annotation As TextAnnotation = 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