I have drawn a line and unlocked it allowing the user to drag it to wherever they chose
IDrawingTool myLine;
myLine = Draw.VerticalLine(this,"TheLine",5,Brushes.Black);//.IsLocked = false;
myLine.IsLocked = false;
Now I want to read the Time based location of that line.
Based on the NT8 help guide the time value should be stores in <ChartAnchor>.Time
Not being a professional coder I dont understand why ChartAnchor is shown int <>'s
I would have thought the code should look like this, but i am obviously wrong.
Print ("my Line anchor time = "+myLine.ChartAnchor.Time);
The Help Guide also shows this example which would suffice
Print(myText.Anchor.DrawnOnBar);
although, the "Anchor" property doesnt exist when typing "myLine....." on the "Anchors" property which has no reference to Bars or Time in it.
Comment