internal int ActiveCellId(TPanePosition Pane) { TPaneSelection P = CalcPane(Pane); if (P == null) { return(0); } return(P.GetActiveCellId()); }
internal TCellAddress GetActiveCellBase1(TPanePosition Pane) { TPaneSelection P = CalcPane(Pane); if (P == null) { return(null); } return(P.GetActiveCellBase1()); }
internal TXlsCellRange[] GetSelection(TPanePosition Pane) { TPaneSelection P = CalcPane(Pane); if (P == null) { return(null); } return(P.GetSelection()); }
private TPaneSelection CalcPane(TPanePosition Pane) { int PanePos = (int)Pane; if (PanePos < 0 || PanePos > 3) { return(null); //invalid pane. } if (Panes[PanePos] == null) { return(null); } return(Panes[PanePos]); }
internal void Select(TPanePosition Pane, TXlsCellRange[] CellRange, int ActiveRow, int ActiveCol, int ActiveCellId) { int PanePos = (int)Pane; if (PanePos < 0 || PanePos > 3) { return; //invalid pane. } if (Panes[PanePos] == null) { Panes[PanePos] = new TPaneSelection(); } Panes[PanePos].Select(CellRange, ActiveRow, ActiveCol, ActiveCellId); }