Just a quick question. I have a rectangle (System.Windows.Rect) of which I know the left and right X positions. To see which bars on my chart this represent, I do a chartControl.GetSlotIndexByX(myRect.X) for example. A couple of questions on this:
- Why does the above method take an int as a parameter? Surely a mouse click for example is very rarely on exactly an int value on the chart
- The method returns a double. Is the int part of this value the same as the BarIndex?
I am trying to determine what range of bars in my chart the rectangle spans, hence my question.
Any help would be greatly appreciated.
Regards,
John Steinberg
Comment