mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2026-01-01 16:59:37 +01:00
Add row and column accessors for tables and grids
This commit is contained in:
committed by
Patrik Svensson
parent
3e5e22d6c2
commit
e7f497050c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user