8using System.Collections.Generic;
20 private string colorValue;
53 this.ColorValue = rgb;
63 return "FF" + colorValue;
71 public override bool Equals(
object obj)
83 return 800285905 + EqualityComparer<string>.Default.GetHashCode(
ColorValue);
string ColorValue
Gets or sets the sRGB value (Hex code of RGB). If set, the value will be cast to upper case.
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.
string StringValue
Gets the string value of the color. The value is identical to ColorValue and defined as interface imp...
SrgbColor(string rgb)
Constructor with parameters.
SrgbColor()
Default constructor.
string ToArgbColor()
Converts the sRGB value to an ARGB value.
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 ValidateColor(string hexCode, bool useAlpha, bool allowEmpty=false)
Validates the passed string, whether it is a valid RGB or ARGB value that can be used for Fills or Fo...