/// <summary> /// 创建行 /// </summary> private Row CreateRow( int index ) { var row = GetRow( index ); if ( row != null ) return row; row = new Row( index ); _rows.Add( row ); return row; }
/// <summary> /// 添加单元格 /// </summary> private void AddCell( Row row, Cell cell, int rowIndex ) { row.Add( cell ); if ( cell.RowSpan <= 1 ) return; for ( int i = 1; i < cell.RowSpan; i++ ) AddPlaceholderCell( cell, rowIndex + i ); }
public void TestInit() { _row = new Row( 2 ); }