Property | Type | Description | |
---|---|---|---|
GetName | string |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
GetName ( this color ) : string |
public static GetColor ( [ name ) : Optional |
||
name | [ | The name. |
return | Optional |
public static RemoveName ( [ name ) : Optional |
||
name | [ | The name. |
return | Optional |
public static SetName ( this color, [ name ) : void | ||
color | this | The color. |
name | [ | The name. |
return | void |
public static ToColor ( this color ) : Color | ||
color | this | The color. |
return | Color |
public static ToConsoleColor ( this color ) : ConsoleColor | ||
color | this | The color. |
return | ConsoleColor |