Exemple #1
0
        public HeaderRow Copy()
        {
            HeaderRow hr = new HeaderRow(this._RowIndex, this._ColCount);

            hr.Cells.Clear();
            foreach (object obj in this._Cells)
            {
                HeaderCell hc = (obj as HeaderCell).Copy();
                hr.Cells.Add(hc);
            }
            return(hr);
        }
Exemple #2
0
 private void Resize()
 {
     for (int i = 0; i < this._Rows.Count; i++)
     {
         HeaderRow hr = this.GetRow(i);
         for (int j = 0; j < hr.ColCount; j++)
         {
             HeaderCell hc = hr.GetCell(j);
             hc.Row = i;
             hc.Col = j;
         }
     }
 }
Exemple #3
0
        public void UpdateCellStyle(HeaderCellStyle headerstyle)
        {
            if (this._CurCell != null)
            {
                if (headerstyle.UpdateAllRowsStyle)
                {
                    HeaderRow headerRow = this.GetRow(_CurCell.Row);

                    headerRow.UpdateCellStyle(headerstyle);
                }
                else
                {
                    this._CurCell.UpdateCellStyle(headerstyle);
                }
            }
        }
Exemple #4
0
        public HeadersData Copy()
        {
            HeadersData hd = new HeadersData(this._RowCount, this._ColCount);

            hd.Rows.Clear();
            foreach (object obj in this._Rows)
            {
                HeaderRow hr = (obj as HeaderRow).Copy();
                hd._Rows.Add(hr);
            }

            hd._GridLine = this._GridLine;

            #region Modify codes at 2008-11-5 15:03:24@Simon
            hd.ColsToMerge.Clear();
            foreach (int obj in this.ColsToMerge)
            {
                hd.ColsToMerge.Add(obj);
            }
            #endregion                    //End Modify

            return(hd);
        }
Exemple #5
0
        public HeaderRow GetRow(int Row)
        {
            HeaderRow hr = this._Rows[Row] as HeaderRow;

            return(hr);
        }
Exemple #6
0
        public HeaderCell GetCell(int Row, int Col)
        {
            HeaderRow hr = this._Rows[Row] as HeaderRow;

            return(hr.GetCell(Col));
        }