Extension and support methods for manipulating with Color
structure.
More...
|
static string | ToHexaCode (this Color color) |
| Converts a Color to hexa code to be used in settings. More...
|
|
static string | ToName (this Color color) |
| Converts color to it's name. Only Colors, which are members of KnownColor enumeration are valid. More...
|
|
Extension and support methods for manipulating with Color
structure.
static Color SSQLE.ColorExtensions.FromString |
( |
string |
str | ) |
|
|
static |
Converts a string to a Color
based on its content.
- Parameters
-
- Returns
Color
structure constructed from str .
Is capable of converting strings in two formats, either
- #RRGGBB ; As HexaCode.
- See also
- ToHexaCode
.
- string, for which Color.FromName(string) returns valid color.
- Exceptions
-
ArgumentException | If invalid string is provided. |
static string SSQLE.ColorExtensions.ToHexaCode |
( |
this Color |
color | ) |
|
|
staticprivate |
Converts a Color
to hexa code to be used in settings.
- Parameters
-
- Returns
- Hexa code in format #RRGGBB, where R,G,B are hexadecimal numbers.
static string SSQLE.ColorExtensions.ToName |
( |
this Color |
color | ) |
|
|
staticprivate |
Converts color to it's name. Only Colors, which are members of KnownColor
enumeration are valid.
- Parameters
-
color | Color, which name we want to know. |
- Returns
- Name of the color, or
null
if color is not member of KnownColor
enumeration
static string SSQLE.ColorExtensions.ToSettingsString |
( |
this Color |
color | ) |
|
|
static |
The documentation for this class was generated from the following file: