IChartViewModelCalculateTimeFromX Method |
Calculates the time from the x co-ordinates
Namespace: ArthaChitra.Model.ChartAssembly: ArthaChitra.Core (in ArthaChitra.Core.dll) Version: 2.0.3.0
Syntax DateTime CalculateTimeFromX(
double pointX,
out int nearestBarIndex
)
Parameters
- pointX Double
- Point
- nearestBarIndex Int32
- The nearest bar index. This value is returned for Equi-distant axis only, if available. For Time Axis it is set to -1
Return Value
DateTimeFor equi-distant axis it will return the nearest bar time. For time axis chart it will return the axis time of the x co-ordinate
See Also