Method GetColorOrDefault
GetColorOrDefault(string, Func<Color>)
Returns a color by its name or a result of defaultFunc
call
if no color is registered for the specified name.
public static Color GetColorOrDefault(string name, Func<Color> defaultFunc)
Parameters
Returns
GetColorOrDefault(string, Color)
Returns a color by its name or defaultValue
if no color is registered for the specified name.
public static Color GetColorOrDefault(string name, Color defaultValue)