Add row and column accessors for tables and grids

This commit is contained in:
Patrik Svensson
2020-10-26 11:51:35 +01:00
committed by Patrik Svensson
parent 3e5e22d6c2
commit e7f497050c
30 changed files with 511 additions and 162 deletions

View File

@@ -55,7 +55,7 @@ namespace Spectre.Console
foreach (var (columnIndex, _, lastColumn, columnWidth) in widths.Enumerate())
{
var padding = columns[columnIndex].Padding;
var centerWidth = padding.Left + columnWidth + padding.Right;
var centerWidth = padding.GetLeftSafe() + columnWidth + padding.GetRightSafe();
builder.Append(center.Repeat(centerWidth));
if (!lastColumn)