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); }
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; } } }
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); } } }
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); }
public HeaderRow GetRow(int Row) { HeaderRow hr = this._Rows[Row] as HeaderRow; return(hr); }
public HeaderCell GetCell(int Row, int Col) { HeaderRow hr = this._Rows[Row] as HeaderRow; return(hr.GetCell(Col)); }