Table of Contents

Class Color

Namespace
C4.Net
Assembly
C4.Net.Core.dll

Provides helpers for validating color values used by the view layer.

public class Color
Inheritance
Color
Inherited Members

Methods

IsHexColorCode(string)

Determines whether the supplied value is a six-digit hexadecimal color code.

public static bool IsHexColorCode(string colorAsString)

Parameters

colorAsString string

The color value to validate.

Returns

bool

true when the value starts with # and contains six hexadecimal digits; otherwise, false.