ColoredConsole Class
用来向控制台输出彩色文本的类。
Namespace: QuickAdmin.UtilsAssembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.1.6
public sealed class ColoredConsole
- Inheritance
- object ColoredConsole
Public Methods |
BeginColorsOutput |
开始彩色输出。
|
EndColorsOutput |
结束彩色输出。
|
ResetColor |
恢复系统默认颜色设置。
|
Write(string) |
按照最后一次调用 BeginColorsOutput(ConsoleColor, ConsoleColor?) 设置的颜色输出各个字符串。
|
Write(ConsoleColor, string) |
按指定前景色输出各个字符串。
|
Write(ConsoleColor, ConsoleColor?, string) |
按指定前景色和背景色输出各个字符串。
|
Write(string, ConsoleColor?, ConsoleColor?) |
分别按指定颜色输出数组内的字符串。
|
WriteLine(string) |
按照最后一次调用 BeginColorsOutput(ConsoleColor, ConsoleColor?) 设置的颜色输出各个字符串行。
|
WriteLine(ConsoleColor, string) |
按指定前景色输出各个字符串行。
|
WriteLine(ConsoleColor, ConsoleColor?, string) |
按指定前景色和背景色输出各个字符串行。
|
WriteLine(string, ConsoleColor?, ConsoleColor?) |
分别按指定颜色输出数组内的字符串行。
|
WriteWithSeparator(string, ConsoleColor, string) |
用指定分隔符及前景色输出各个字符串。
|
WriteWithSeparator(string, ConsoleColor, ConsoleColor, string) |
用指定分隔符及前景色输出各个字符串,可分别指定字符串和分隔符的前景色。
|
WriteWithSeparator(string, ConsoleColor, ConsoleColor, ConsoleColor, ConsoleColor, string) |
用指定分隔符及颜色输出各个字符串,可分别指定字符串和分隔符的前景色、背景色。
|