Source/NFX.WinForms/Controls/ChartKit/Temporal/TimeSeriesChart.cs
/// <summary>
/// Maps mouse Y coordinate per pane's vertical scale value
/// </summary>
Maps mouse Y coordinate per pane's vertical scale value
Maps mouse Y coordinate per pane ' s vertical scale value
public float MapPaneYToValue(PlotPane pane, int y)
    {
      if (pane == null)
        throw new WFormsException(StringConsts.ARGUMENT_ERROR +
                                  "MapPaneYToValue(pane==null)");
      if (pane.Chart != this)
        throw new WFormsException(StringConsts.ARGUMENT_ERROR +
                                  "MapPaneYToValue(pane.Chart!=this)");
      var pp = (pane.VRulerMaxScale - pane.VRulerMinScale) /
               (float)(pane.Height == 0 ? 1 : pane.Height);
      return pane.VRulerMaxScale - (y*pp);
    }
public float MapPaneYToValue ( PlotPane pane , int y ) { if ( pane == null ) throw new WFormsException ( StringConsts . ARGUMENT_ERROR + " " ) ; if ( pane . Chart != this ) throw new WFormsException ( StringConsts . ARGUMENT_ERROR + " " ) ; var pp = ( pane . VRulerMaxScale - pane . VRulerMinScale ) / ( float ) ( pane . Height == 0 ? 1 : pane . Height ) ; return pane . VRulerMaxScale - ( y * pp ) ; }
Maps mouse Y coordinate per pane's vertical scale value
Maps mouse Y coordinate per pane ' s vertical scale value
pane
PlotPane
y
int