/// <summary> /// Formats a <see cref="Row" />. /// </summary> /// <param name="row"> /// The <see cref="Row" /> to format. /// </param> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="row"/> is <see langword="null" />. /// </exception> internal string FormatRow(Row row) { if(row == null) { throw new ArgumentNullException("row"); } IEnumerable<string > cells = row.EquiZip(Table.Columns, ColumnWidths, (value, column, width) => column.Format(value, width)); return LeftBorder + ColumnSeparator.Join(cells) + RightBorder; }