Свойство | Тип | Описание | |
---|---|---|---|
GetName | string |
Метод | Описание | |
---|---|---|
GetColor ( [ name ) : Optional |
Gets the color corresponding to the name; otherwise returns Optional{Color}.Unassigned.
|
|
RemoveName ( [ name ) : Optional |
Removes the custom color name.
|
|
SetName ( this color, [ name ) : void |
Sets a custom name for the color.
|
|
ToColor ( this color ) : Color |
Gets the Color of a ConsoleColor.
|
|
ToConsoleColor ( this color ) : ConsoleColor |
Converts a Color to the nearest ConsoleColor.
|
Метод | Описание | |
---|---|---|
GetName ( this color ) : string |
public static GetColor ( [ name ) : Optional |
||
name | [ | The name. |
Результат | Optional |
public static RemoveName ( [ name ) : Optional |
||
name | [ | The name. |
Результат | Optional |
public static SetName ( this color, [ name ) : void | ||
color | this | The color. |
name | [ | The name. |
Результат | void |
public static ToColor ( this color ) : Color | ||
color | this | The color. |
Результат | Color |
public static ToConsoleColor ( this color ) : ConsoleColor | ||
color | this | The color. |
Результат | ConsoleColor |