public void Write(string str, ConsoleTableSection type, int columnIndex, int rowIndex) { if (!type.HasFlag(ConsoleTableSection.Row | ConsoleTableSection.Seperator)) { output.Write(Level.None, str); } }
public void WriteDivider(ConsoleTableSection root = ConsoleTableSection.None) { AttemptUpdate(); Printer.Write($"{RowColumnJunction}", root | ConsoleTableSection.Divider | ConsoleTableSection.Seperator, -1, -1); for (int colIndex = 0; colIndex < Columns.Count; colIndex++) { ConsoleTableColumn column = Columns[colIndex]; Printer.Write(Repeat(RowSeperator.ToString(), column.Width + 1), root | ConsoleTableSection.Divider | ConsoleTableSection.Column, colIndex, -1); Printer.Write($"{RowColumnJunction}", root | ConsoleTableSection.Divider | ConsoleTableSection.Seperator, -1, -1); } Printer.Write("\n", root | ConsoleTableSection.Divider, -1, -1); }
public void Write(string str, ConsoleTableSection type, int columnIndex, int rowIndex) { Console.Write(str); }