Accessing of chart tools
Posted: Thu Jun 11, 2009 4:07 am
I have a cursortool and a colorline tools added to a dynamically generated chart. CursorTool is added first and then the colorline tool.
Now, i want to access these tools. I am currently accessing these tools in the order of addition to the chart as follows:
But, sometimes the tools index is reversed (index 0 shows the colorline and 1 shows the cursortool) and is throwing an exception. How can I reliably access these tools on a dynamically generated chart?
Thanks
Now, i want to access these tools. I am currently accessing these tools in the order of addition to the chart as follows:
Code: Select all
CType(myDynamicChart.Tools.Item(0), Steema.TeeChart.Tools.CursorTool).XValue = myXValue
CType(myDynamicChart.Tools.Item(1), Steema.TeeChart.Tools.ColorLine).Value = myValue
Thanks