GetSlotIndexByX()
<< Click to Display Table of Contents >> GetSlotIndexByX() |
Returns the slot index relative to the chart control corresponding to a specified x-coordinate
Notes: •A "Slot" is used in Equidistant bar spacing and represents a position on the chart canvas background which may or may not contain a bar. The concept of "Slots" does NOT exist on a TimeBased bar spacing type. •If you are looking for information on a bar series, please see ChartBars.GetBarIdxByX() •Since the slot index is based on the chart canvas, the value returned by GetSlotIndexByX() can be expected to change as new bars are painted, or as the chart is scrolled backward or forward on the x-axis. |
A double representing a slot index; returns -1 on a time based bar spacing type
x |
An int used to determine a slot index |
protected override void OnRender(ChartControl chartControl, ChartScale chartScale) |