ValidationHelperGetColor Method |
Returns the color representation of a query parameter or default value
if parameter is not a valid color.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax public static Color GetColor(
string name,
Color defaultValue
)
Parameters
- name
- Type: SystemString
Color name in HTML format - defaultValue
- Type: System.DrawingColor
Default value
Return Value
Type:
ColorSee Also