8using System.Collections.Generic;
28 private string colorValue;
40 if (value.Length == 6)
77 public override bool Equals(
object obj)
89 return 800285905 + EqualityComparer<string>.Default.GetHashCode(
ColorValue);
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 parameters.
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,...