Hallo zusammen
Ich will die Farbe der Konsole abfragen, mit der Eigenschaft Backgroundcolor bekomme ich es aber nicht hin.
Aus MSDN : public static ConsoleColor BackgroundColor { get; set; } (aus ->
msdn.microsoft.com/d...undcolor(VS.80).aspx )
Wie frage ich die Farbe ab, sodass ich diese in einer Variablen ablegen kann?
Ich würde auch gerne verstehen was folgende Zeile macht :
Console.ForegroundColor =
(ConsoleColor)Enum.Parse(typeof(ConsoleColor), colorNames[x]);
(colornames[] ist ein String Array)
Ich bedanke mich für schonmal für jede hilfreiche Antwort.
Grüßle