IsEditing
<< Click to Display Table of Contents >> IsEditing |
Definition
Determines if the anchor can be edited.
A bool value which when true determines if the chart anchor is currently in a state it can be edited. Default is false.
public override void OnMouseDown(ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, Point point) { if(DrawingState == DrawingState.Building) { // if drawing tool is currently editing, update to current mouse point if(MyAnchor.IsEditing) { MyAnchor.UpdateFromPoint(point, chartControl, chartScale);
//set the anchor to disable editing when done updating MyAnchor.IsEditing = false; } } } |