GetTimeByX()
GetTimeByX()
Definition
Returns a time value related to the primary Bars slot index at a specified x-coordinate relative to the ChartControl.
Since the time is based upon a coordinate of the chart canvas, the value returned by GetTimeByX() can be expected to change as new bars are painted on the chart, or as the chart is scrolled backward or forward on the x-axis.
Method Return Value
A DateTime object corresponding to a slot index at a specified x-coordinate.
Syntax
\<chartcontrol\>.GetTimeByX(int x)

