Create an overload of CenterHorizantal

This commit is contained in:
atef 2023-06-30 10:30:50 +02:00
parent 8fc2b8fe9d
commit c087af96c0
1 changed files with 5 additions and 1 deletions

View File

@ -112,7 +112,7 @@ public class TextBlock
return new TextBlock(alignedLines); return new TextBlock(alignedLines);
} }
public static TextBlock CenterHorizontal(params Object[] things) public static TextBlock CenterHorizontal(IReadOnlyList<Object> things)
{ {
var lines = things var lines = things
.SelectMany(GetLines) .SelectMany(GetLines)
@ -127,6 +127,10 @@ public class TextBlock
return new TextBlock(alignedLines); return new TextBlock(alignedLines);
} }
public static TextBlock CenterHorizontal(params Object[] things)
{
return CenterHorizontal((IReadOnlyList<Object>)things);
}
public static TextBlock AlignTop(params Object[] things) public static TextBlock AlignTop(params Object[] things)
{ {