GetXByTime()
<< Click to Display Table of Contents >> GetXByTime() |
Returns the chart-canvas x-coordinate of the slot index of the primary Bars object corresponding to a specified time.
Note: Since the time correlates with a specific bar index, and since bars move on the chart canvas as new bars are painted, the value returned by GetXByTime() 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. |
An int representing a chart-canvas x-coordinate
<ChartControl>.GetXByTime(DateTime time)
time |
A DateTime object used to determine an x-coordinate |
protected override void OnRender(ChartControl chartControl, ChartScale chartScale) |