IsEditing

View as Markdown

Definition

Determines if the anchor can be edited.

Property Value

A bool value which when true determines if the chart anchor is currently in a state it can be edited. Default is false.

Syntax

\<chartanchor\>.IsEditing

Examples

1public override void OnMouseDown(ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, Point point)
2{
3 if (DrawingState == DrawingState.Building)
4 {
5 // if drawing tool is currently editing, update to current mouse point
6 if (MyAnchor.IsEditing)
7 {
8 MyAnchor.UpdateFromPoint(point, chartControl, chartScale);
9
10 //set the anchor to disable editing when done updating
11 MyAnchor.IsEditing = false;
12 }
13 }
14}