Create an overload of CenterHorizantal
This commit is contained in:
parent
8fc2b8fe9d
commit
c087af96c0
|
@ -112,7 +112,7 @@ public class TextBlock
|
|||
return new TextBlock(alignedLines);
|
||||
}
|
||||
|
||||
public static TextBlock CenterHorizontal(params Object[] things)
|
||||
public static TextBlock CenterHorizontal(IReadOnlyList<Object> things)
|
||||
{
|
||||
var lines = things
|
||||
.SelectMany(GetLines)
|
||||
|
@ -127,6 +127,10 @@ public class TextBlock
|
|||
return new TextBlock(alignedLines);
|
||||
}
|
||||
|
||||
public static TextBlock CenterHorizontal(params Object[] things)
|
||||
{
|
||||
return CenterHorizontal((IReadOnlyList<Object>)things);
|
||||
}
|
||||
|
||||
public static TextBlock AlignTop(params Object[] things)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue