IsEditing

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Drawing Tool > ChartAnchor >

IsEditing

Previous page Return to chapter overview Next page

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

ns


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;                                        

}

}

}