/// <summary> /// 生成新的矩阵 /// </summary> /// <returns></returns> public override RptItem Clone() { RptMatrix mtx = new RptMatrix(this.Part); mtx._data.Copy(_data); mtx.Corner = Corner.Clone(mtx); mtx.ColHeader = ColHeader.Clone(mtx); mtx.RowHeader = RowHeader.Clone(mtx); foreach (RptMtxRow row in Rows) { mtx.Rows.Add(row.Clone(mtx)); } return(mtx); }