GetXByBarIndex()
<< Click to Display Table of Contents >> GetXByBarIndex() |
Returns the chart-canvas x-coordinate of the bar at a specified index of a specified ChartBars object on the chart.
Note: Since the index is based upon bars that move across the chart canvas as new bars are painted, the value returned by GetXByBarIndex() 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>.GetXByBarIndex(ChartBars chartBars, int barIndex)
chartBars |
The ChartBars object to check |
barIndex |
The slot index used to determine an x-coordinate |
protected override void OnRender(ChartControl chartControl, ChartScale chartScale) |