Exemple #1
0
 /// <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;
 }
Exemple #2
0
 /// <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 );
 }
Exemple #3
0
 public void TestInit() {
     _row = new Row( 2 );
 }