8using System.Collections.Generic;
27 private string colorValue;
39 if (value.Length == 6)
76 public override bool Equals(
object obj)
88 return 800285905 + EqualityComparer<string>.Default.GetHashCode(
ColorValue);
override string ToString()
Returns a string that represents the current object, which is the color value.
const string DefaultSrgbColor
Default color value (opaque black: #000000).
string StringValue
Gets the string value of the color. The value is identical to ColorValue and defined as interface imp...
string ColorValue
Gets or sets the sRGB value (Hex code of RGB/ARGB). If set, the value will be cast to upper case....
SrgbColor()
Default constructor.
override int GetHashCode()
Gets the hash code of the instance.
override bool Equals(object obj)
Determines whether the specified object is equal to the current object.
SrgbColor(string rgb)
Constructor with an RGB or ARGB hex string.
Class providing static methods to parse string values to specific types or to print object as languag...
static string ToUpper(string input)
Transforms a string to upper case with null check and invariant culture.
Class providing general validator methods.
static void ValidateGenericColor(string hexCode, bool allowEmpty=false)
Validates the passed string, whether it is a valid RGB or ARGB value that can be used for Fills,...