예제 #1
0
 public static ISize Print(int x, int y, string text, params object[] args)
 {
     BearLibTerminalIntegration.Print(x, y, 0, 0, 0, Helpers.Format(text, args), out int width, out int height);
     return(SizeFactory.GetSize(width, height));
 }
예제 #2
0
 public static ISize Print(IRectangle layout, ContentAlignment alignment, string text, params object[] args)
 {
     BearLibTerminalIntegration.Print(layout.X, layout.Y, layout.Width, layout.Height, (int)alignment, Helpers.Format(text, args), out int width, out int height);
     return(new DefaultImplementations.Size(width, height));
 }