Beispiel #1
0
        public virtual void expandLeftHead(int mergeInc)
        {
            if (mergeInc < 0)
            {
                throw new SystemException();
            }
            CellExt ext  = prevCell;
            CellExt ext2 = this;

            while (ext != null)
            {
                for (int i = 0; i < ext.SubCells.Count; i++)
                {
                    CellExt ext3 = (CellExt)ext.SubCells[i];
                    if ((ext3 != ext2) && ext3.containRow(this))
                    {
                        ext3.expand(mergeInc, 0);
                    }
                }
                if (ext.containRow(this))
                {
                    ext.expand(mergeInc, 0);
                }
                ext2 = ext;
                ext  = ext.prevCell;
            }
        }
Beispiel #2
0
        private CellExt method_2(CellExt cellExt_2)
        {
            string cellId = (string)cellExt_2.getPropValue(452);

            if (cellId != null)
            {
                cellId = cellId.Trim();
                if (cellId.Length > 0)
                {
                    CellExt ext4 = getSource(cellId);
                    if (ext4 != null)
                    {
                        return(ext4);
                    }
                }
            }
            for (int i = cellExt_2.Col - 1; i >= 1; i--)
            {
                CellExt sub = getCell(cellExt_2.Row, i);
                if (sub != null)
                {
                    if (!sub.containRow(cellExt_2) || !PropertyDefine.CEX_VERTICAL.Equals(sub.Extensible))
                    {
                        CellExt ext3 = sub.getLeftHead();
                        if ((ext3 != null) && !cellExt_2.isLeftHeadOf(ext3))
                        {
                            return(ext3);
                        }
                    }
                    else if (!cellExt_2.isLeftHeadOf(sub))
                    {
                        return(sub);
                    }
                }
            }
            return(getCell(0, 0));
        }