Click or drag to resize
ValidationHelperGetColor Method
Returns the color representation of a query parameter or default value if parameter is not a valid color.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
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: Color
See Also