[]
Represents a color.
public struct SvgColor : IEquatable<SvgColor>
public SvgColor(HslColor hsl)
hsl
HslColorInitializes a new instance of the SvgColor struct from the System.Drawing.Color value.
public SvgColor(Color color)
color
System.Drawing.ColorInitializes a new instance of the SvgColor struct from a 32-bit ARGB value.
public SvgColor(int argb)
argb
intRepresents the black color.
public static readonly SvgColor Black
Represents the 'currentColor' value.
public static readonly SvgColor CurrentColor
Represents the transparent color.
public static readonly SvgColor Transparent
Gets or sets the HslColor value.
public HslColor Hsl { get; }
Gets a value indicating whether this color references the 'color' attribute.
public bool IsCurrentColor { get; }
Gets or sets a value indicating whether the color is stored in HSLA format.
public bool IsHsl { get; }
Gets or sets a value indicating whether the color is stored in RGBA format.
public bool IsRgb { get; }
Gets the System.Drawing.Color value.
public Color Rgb { get; }
Determines whether the specified SvgColor is equal to this instance.
public bool Equals(SvgColor other)
other
SvgColorDetermines whether the specified object is equal to this instance.
public override bool Equals(object obj)
obj
objectReturns a hash code for the current SvgColor.
public override int GetHashCode()
Returns a string that represents the current SvgColor.
public override string ToString()