Пример #1
0
 private int GetColumnLeft(int column)
 {
     if (column < _columnSizes.FrozenCount)
     {
         return(_columnSizes.GetFrozenPosition(column) + HeaderWidth);
     }
     return(_columnSizes.GetSizeSum(FirstVisibleColumnScrollIndex, column - _columnSizes.FrozenCount) + HeaderWidth + FrozenWidth);
     //return (column - FirstVisibleColumn) * ColumnWidth + HeaderWidth;
 }
Пример #2
0
 private int GetRowTop(int row)
 {
     if (row < _rowSizes.FrozenCount)
     {
         return(_rowSizes.GetFrozenPosition(row) + HeaderHeight);
     }
     return(_rowSizes.GetSizeSum(FirstVisibleRowScrollIndex, row - _rowSizes.FrozenCount) + HeaderHeight + FrozenHeight);
     //return (row - FirstVisibleRow) * RowHeight + HeaderHeight;
 }
Пример #3
0
        private int GetRowTop(int row)
        {
            var hFilter = IsColumnFilterEnabled ? FilterHeight : 0;

            if (row < _rowSizes.FrozenCount)
            {
                return(_rowSizes.GetFrozenPosition(row) + HeaderHeight + hFilter);
            }
            return(_rowSizes.GetSizeSum(FirstVisibleRowScrollIndex, row - _rowSizes.FrozenCount) + HeaderHeight + FrozenHeight + hFilter);
            //return (row - FirstVisibleRow) * RowHeight + HeaderHeight;
        }