public TableRows DeepCloneWithFooterRows(FooterRows footerRows) { var result = new TableRows( this.HeaderRows?.DeepClone(), this.DataRows?.DeepClone(), footerRows, this.RowsFormat?.DeepClone()); return(result); }
/// <summary> /// Initializes a new instance of the <see cref="TableRows"/> class. /// </summary> /// <param name="headerRows">OPTIONAL header rows. DEFAULT is no headers rows.</param> /// <param name="dataRows">OPTIONAL data rows. DEFAULT is no data rows.</param> /// <param name="footerRows">OPTIONAL footer rows. DEFAULT is no footer rows.</param> /// <param name="rowsFormat">OPTIONAL format to apply to all rows, individually. DEFAULT is to leave the format unchanged.</param> public TableRows( HeaderRows headerRows = null, DataRows dataRows = null, FooterRows footerRows = null, RowFormat rowsFormat = null) { this.HeaderRows = headerRows; this.DataRows = dataRows; this.FooterRows = footerRows; this.RowsFormat = rowsFormat; }