ExcelFormulaParser.Engine.ExcelUtilities.AddressTranslator.GetRowIndexByBehaviour C# (CSharp) Method

GetRowIndexByBehaviour() private method

private GetRowIndexByBehaviour ( RangeCalculationBehaviour behaviour ) : int
behaviour RangeCalculationBehaviour
return int
        private int GetRowIndexByBehaviour(RangeCalculationBehaviour behaviour)
        {
            if (behaviour == RangeCalculationBehaviour.FirstPart)
            {
                return 0;
            }
            return _excelDataProvider.ExcelMaxRows - 1;
        }