메소드 | 설명 | |
---|---|---|
ColorManager ( |
Manages the number of different colors that the Windows console is able to display in a given session.
|
|
GetColor ( ConsoleColor color ) : Color |
Gets the System.Drawing.Color mapped to the ConsoleColor provided as an argument.
|
|
GetConsoleColor ( Color color ) : ConsoleColor |
Gets the ConsoleColor mapped to the System.Drawing.Color provided as an argument.
|
메소드 | 설명 | |
---|---|---|
CanChangeColor ( ) : bool | ||
GetConsoleColorNative ( Color color ) : ConsoleColor |
public ColorManager ( |
||
colorStore | The ColorStore instance in which the ColorManager will store colors. | |
colorMapper | The ColorMapper instance the ColorManager will use to relate different color /// types to one another. | |
maxColorChanges | int | The maximum number of color changes allowed by the ColorManager. It's /// necessary to keep track of this, because the Windows console can only display 16 different colors in /// a given session. |
initialColorChangeCountValue | int | The number of color changes which have already occurred. |
리턴 | System |
public GetColor ( ConsoleColor color ) : Color | ||
color | ConsoleColor | The ConsoleColor alias under which the desired System.Drawing.Color is stored. |
리턴 | Color |
public GetConsoleColor ( Color color ) : ConsoleColor | ||
color | Color | The System.Drawing.Color whose ConsoleColor alias should be retrieved. |
리턴 | ConsoleColor |