/// <summary> /// Create a new TableRow /// </summary> public TableRow(TableRowOptions options = null) { if (options == null) { options = new TableRowOptions(); } this.Options = options; this.Cells = new List <TableCell>(); }
/// <summary> /// Add TableRow which will be used for this Table's column headers /// </summary> /// <param name="row"></param> /// <param name="options"></param> public void AddHeaders(TableRow row, TableRowOptions options = null) { if (options == null) { options = new TableRowOptions(); } this.HeaderRow = row; this.HeaderRow.Options = options; }
/// <summary> /// Add a table row /// </summary> /// <param name="row"></param> /// <param name="options"></param> public void AddRow(TableRow row, TableRowOptions options = null) { if (options == null) { options = new TableRowOptions(); } row.Options = options; this.Rows.Add(row); }
/// <summary> /// Return a TableRowOptions with parameters to set specific properties /// </summary> /// <param name="TableCellOptions"></param> /// <returns></returns> public static TableRowOptions Set( TableCellOptions TableCellOptions = null ) { var value = new TableRowOptions(); if (TableCellOptions != null) { value.TableCellOptions = TableCellOptions; } return(value); }