GetSlotIndexByTime()
<< Click to Display Table of Contents >> GetSlotIndexByTime() |
Returns the slot index relative to the chart control corresponding to a specified time value.
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.GetBarIdxByTime() |
A double representing a slot index
Warning: This method CANNOT be called on BarSpacingType.TimeBased charts. You will need to ensure an Equidistant bar spacing type is used, otherwise errors will be thrown. |
time |
A DateTime Structure used to determine a slot index |
protected override void OnRender(ChartControl chartControl, ChartScale chartScale) |