Esempio n. 1
0
        internal int ActiveCellId(TPanePosition Pane)
        {
            TPaneSelection P = CalcPane(Pane);

            if (P == null)
            {
                return(0);
            }
            return(P.GetActiveCellId());
        }
Esempio n. 2
0
        internal TCellAddress GetActiveCellBase1(TPanePosition Pane)
        {
            TPaneSelection P = CalcPane(Pane);

            if (P == null)
            {
                return(null);
            }
            return(P.GetActiveCellBase1());
        }
Esempio n. 3
0
        internal TXlsCellRange[] GetSelection(TPanePosition Pane)
        {
            TPaneSelection P = CalcPane(Pane);

            if (P == null)
            {
                return(null);
            }
            return(P.GetSelection());
        }
Esempio n. 4
0
        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]);
        }
Esempio n. 5
0
        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);
        }