GetTimeByX()
<< Click to Display Table of Contents >> GetTimeByX() |
Returns a time value related to the primary Bars' slot index at a specified x-coordinate relative to the ChartControl.
Note: 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. |
A DateTime object corresponding to a slot index at a specified x-coordinate
x |
The x-coordinate used to find a time value |
protected override void OnRender(ChartControl chartControl, ChartScale chartScale) |