Exemplo n.º 1
0
 public static void PrintText(
     string txt,
     ConsoleCoords coordinates,
     int colOffset = 0,
     int rowOffset = 0,
     ConsoleColor foregroundColor = ConsoleColor.White,
     ConsoleColor backgroundColor = ConsoleColor.Black)
 {
     Console.SetCursorPosition(coordinates.Col + colOffset, coordinates.Row + rowOffset);
     Console.ForegroundColor = foregroundColor;
     Console.BackgroundColor = backgroundColor;
     Console.Write(txt);
 }
Exemplo n.º 2
0
 public static void PrintText(
     string txt,
     ConsoleCoords coordinates,
     int colOffset = 0,
     int rowOffset = 0,
     ConsoleColor foregroundColor = ConsoleColor.White,
     ConsoleColor backgroundColor = ConsoleColor.Black)
 {
     Console.SetCursorPosition(coordinates.Col + colOffset, coordinates.Row + rowOffset);
     Console.ForegroundColor = foregroundColor;
     Console.BackgroundColor = backgroundColor;
     Console.Write(txt);
 }