Summary
Searches for the localized name of a given color
- Namespace
- MahApps
.Metro .Controls - Containing Type
- ColorHelper
Syntax
public static string GetColorName(Color? color, Dictionary<Color?, string> colorNamesDictionary)
Parameters
Name | Type | Description |
---|---|---|
color | Color? | color |
colorNamesDictionary | Dictionary |
Optional: The dictionary where the ColorName should be looked up |
Return Value
Type | Description |
---|---|
string | the local color name or null if the given color doesn't have a name |