Exemple #1
0
 /// <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>();
 }
Exemple #2
0
 /// <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;
 }
Exemple #3
0
 /// <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);
 }
Exemple #4
0
        /// <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);
        }