public override void BringCellToVisible(TabularPosition position) { if ((!position.IsEmpty && (position.Area == SheetArea.Cells)) && (_excel.ActiveSheet != null)) { NavigatorHelper.BringCellToVisible(_excel, position.Row, position.Column); } }
public override bool IsMerged(TabularPosition position, out TabularRange range) { range = new TabularRange(position, 1, 1); if ((_excel.ActiveSheet != null) && (_excel.ActiveSheet.SpanModel != null)) { CellRange range2 = _excel.ActiveSheet.SpanModel.Find(position.Row, position.Column); if (range2 != null) { range = new TabularRange(position.Area, range2.Row, range2.Column, range2.RowCount, range2.ColumnCount); return(true); } } return(false); }
public override bool CanMoveCurrentTo(TabularPosition cellPosition) { return(((((_excel.ActiveSheet != null) && (cellPosition.Row >= 0)) && ((cellPosition.Row < _excel.ActiveSheet.RowCount) && (cellPosition.Column >= 0))) && (((cellPosition.Column < _excel.ActiveSheet.ColumnCount) && _excel.ActiveSheet.Cells[cellPosition.Row, cellPosition.Column].ActualFocusable) && GetRowIsVisible(cellPosition.Row))) && GetColumnIsVisible(cellPosition.Column)); }