Struct GlyphColor
Provides access to the color details for the current glyph.
public readonly struct GlyphColor : IEquatable<GlyphColor>
- Implements
- Inherited Members
Fields
AliceBlue
Represents a
public static readonly GlyphColor AliceBlue
Field Value
AntiqueWhite
Represents a
public static readonly GlyphColor AntiqueWhite
Field Value
Aqua
Represents a
public static readonly GlyphColor Aqua
Field Value
Aquamarine
Represents a
public static readonly GlyphColor Aquamarine
Field Value
Azure
Represents a
public static readonly GlyphColor Azure
Field Value
Beige
Represents a
public static readonly GlyphColor Beige
Field Value
Bisque
Represents a
public static readonly GlyphColor Bisque
Field Value
Black
Represents a
public static readonly GlyphColor Black
Field Value
BlanchedAlmond
Represents a
public static readonly GlyphColor BlanchedAlmond
Field Value
Blue
Represents a
public static readonly GlyphColor Blue
Field Value
BlueViolet
Represents a
public static readonly GlyphColor BlueViolet
Field Value
Brown
Represents a
public static readonly GlyphColor Brown
Field Value
BurlyWood
Represents a
public static readonly GlyphColor BurlyWood
Field Value
CadetBlue
Represents a
public static readonly GlyphColor CadetBlue
Field Value
Chartreuse
Represents a
public static readonly GlyphColor Chartreuse
Field Value
Chocolate
Represents a
public static readonly GlyphColor Chocolate
Field Value
Coral
Represents a
public static readonly GlyphColor Coral
Field Value
CornflowerBlue
Represents a
public static readonly GlyphColor CornflowerBlue
Field Value
Cornsilk
Represents a
public static readonly GlyphColor Cornsilk
Field Value
Crimson
Represents a
public static readonly GlyphColor Crimson
Field Value
Cyan
Represents a
public static readonly GlyphColor Cyan
Field Value
DarkBlue
Represents a
public static readonly GlyphColor DarkBlue
Field Value
DarkCyan
Represents a
public static readonly GlyphColor DarkCyan
Field Value
DarkGoldenrod
Represents a
public static readonly GlyphColor DarkGoldenrod
Field Value
DarkGray
Represents a
public static readonly GlyphColor DarkGray
Field Value
DarkGreen
Represents a
public static readonly GlyphColor DarkGreen
Field Value
DarkGrey
Represents a
public static readonly GlyphColor DarkGrey
Field Value
DarkKhaki
Represents a
public static readonly GlyphColor DarkKhaki
Field Value
DarkMagenta
Represents a
public static readonly GlyphColor DarkMagenta
Field Value
DarkOliveGreen
Represents a
public static readonly GlyphColor DarkOliveGreen
Field Value
DarkOrange
Represents a
public static readonly GlyphColor DarkOrange
Field Value
DarkOrchid
Represents a
public static readonly GlyphColor DarkOrchid
Field Value
DarkRed
Represents a
public static readonly GlyphColor DarkRed
Field Value
DarkSalmon
Represents a
public static readonly GlyphColor DarkSalmon
Field Value
DarkSeaGreen
Represents a
public static readonly GlyphColor DarkSeaGreen
Field Value
DarkSlateBlue
Represents a
public static readonly GlyphColor DarkSlateBlue
Field Value
DarkSlateGray
Represents a
public static readonly GlyphColor DarkSlateGray
Field Value
DarkSlateGrey
Represents a
public static readonly GlyphColor DarkSlateGrey
Field Value
DarkTurquoise
Represents a
public static readonly GlyphColor DarkTurquoise
Field Value
DarkViolet
Represents a
public static readonly GlyphColor DarkViolet
Field Value
DeepPink
Represents a
public static readonly GlyphColor DeepPink
Field Value
DeepSkyBlue
Represents a
public static readonly GlyphColor DeepSkyBlue
Field Value
DimGray
Represents a
public static readonly GlyphColor DimGray
Field Value
DimGrey
Represents a
public static readonly GlyphColor DimGrey
Field Value
DodgerBlue
Represents a
public static readonly GlyphColor DodgerBlue
Field Value
Firebrick
Represents a
public static readonly GlyphColor Firebrick
Field Value
FloralWhite
Represents a
public static readonly GlyphColor FloralWhite
Field Value
ForestGreen
Represents a
public static readonly GlyphColor ForestGreen
Field Value
Fuchsia
Represents a
public static readonly GlyphColor Fuchsia
Field Value
Gainsboro
Represents a
public static readonly GlyphColor Gainsboro
Field Value
GhostWhite
Represents a
public static readonly GlyphColor GhostWhite
Field Value
Gold
Represents a
public static readonly GlyphColor Gold
Field Value
Goldenrod
Represents a
public static readonly GlyphColor Goldenrod
Field Value
Gray
Represents a
public static readonly GlyphColor Gray
Field Value
Green
Represents a
public static readonly GlyphColor Green
Field Value
GreenYellow
Represents a
public static readonly GlyphColor GreenYellow
Field Value
Grey
Represents a
public static readonly GlyphColor Grey
Field Value
Honeydew
Represents a
public static readonly GlyphColor Honeydew
Field Value
HotPink
Represents a
public static readonly GlyphColor HotPink
Field Value
IndianRed
Represents a
public static readonly GlyphColor IndianRed
Field Value
Indigo
Represents a
public static readonly GlyphColor Indigo
Field Value
Ivory
Represents a
public static readonly GlyphColor Ivory
Field Value
Khaki
Represents a
public static readonly GlyphColor Khaki
Field Value
Lavender
Represents a
public static readonly GlyphColor Lavender
Field Value
LavenderBlush
Represents a
public static readonly GlyphColor LavenderBlush
Field Value
LawnGreen
Represents a
public static readonly GlyphColor LawnGreen
Field Value
LemonChiffon
Represents a
public static readonly GlyphColor LemonChiffon
Field Value
LightBlue
Represents a
public static readonly GlyphColor LightBlue
Field Value
LightCoral
Represents a
public static readonly GlyphColor LightCoral
Field Value
LightCyan
Represents a
public static readonly GlyphColor LightCyan
Field Value
LightGoldenrodYellow
Represents a
public static readonly GlyphColor LightGoldenrodYellow
Field Value
LightGray
Represents a
public static readonly GlyphColor LightGray
Field Value
LightGreen
Represents a
public static readonly GlyphColor LightGreen
Field Value
LightGrey
Represents a
public static readonly GlyphColor LightGrey
Field Value
LightPink
Represents a
public static readonly GlyphColor LightPink
Field Value
LightSalmon
Represents a
public static readonly GlyphColor LightSalmon
Field Value
LightSeaGreen
Represents a
public static readonly GlyphColor LightSeaGreen
Field Value
LightSkyBlue
Represents a
public static readonly GlyphColor LightSkyBlue
Field Value
LightSlateGray
Represents a
public static readonly GlyphColor LightSlateGray
Field Value
LightSlateGrey
Represents a
public static readonly GlyphColor LightSlateGrey
Field Value
LightSteelBlue
Represents a
public static readonly GlyphColor LightSteelBlue
Field Value
LightYellow
Represents a
public static readonly GlyphColor LightYellow
Field Value
Lime
Represents a
public static readonly GlyphColor Lime
Field Value
LimeGreen
Represents a
public static readonly GlyphColor LimeGreen
Field Value
Linen
Represents a
public static readonly GlyphColor Linen
Field Value
Magenta
Represents a
public static readonly GlyphColor Magenta
Field Value
Maroon
Represents a
public static readonly GlyphColor Maroon
Field Value
MediumAquamarine
Represents a
public static readonly GlyphColor MediumAquamarine
Field Value
MediumBlue
Represents a
public static readonly GlyphColor MediumBlue
Field Value
MediumOrchid
Represents a
public static readonly GlyphColor MediumOrchid
Field Value
MediumPurple
Represents a
public static readonly GlyphColor MediumPurple
Field Value
MediumSeaGreen
Represents a
public static readonly GlyphColor MediumSeaGreen
Field Value
MediumSlateBlue
Represents a
public static readonly GlyphColor MediumSlateBlue
Field Value
MediumSpringGreen
Represents a
public static readonly GlyphColor MediumSpringGreen
Field Value
MediumTurquoise
Represents a
public static readonly GlyphColor MediumTurquoise
Field Value
MediumVioletRed
Represents a
public static readonly GlyphColor MediumVioletRed
Field Value
MidnightBlue
Represents a
public static readonly GlyphColor MidnightBlue
Field Value
MintCream
Represents a
public static readonly GlyphColor MintCream
Field Value
MistyRose
Represents a
public static readonly GlyphColor MistyRose
Field Value
Moccasin
Represents a
public static readonly GlyphColor Moccasin
Field Value
NavajoWhite
Represents a
public static readonly GlyphColor NavajoWhite
Field Value
Navy
Represents a
public static readonly GlyphColor Navy
Field Value
OldLace
Represents a
public static readonly GlyphColor OldLace
Field Value
Olive
Represents a
public static readonly GlyphColor Olive
Field Value
OliveDrab
Represents a
public static readonly GlyphColor OliveDrab
Field Value
Orange
Represents a
public static readonly GlyphColor Orange
Field Value
OrangeRed
Represents a
public static readonly GlyphColor OrangeRed
Field Value
Orchid
Represents a
public static readonly GlyphColor Orchid
Field Value
PaleGoldenrod
Represents a
public static readonly GlyphColor PaleGoldenrod
Field Value
PaleGreen
Represents a
public static readonly GlyphColor PaleGreen
Field Value
PaleTurquoise
Represents a
public static readonly GlyphColor PaleTurquoise
Field Value
PaleVioletRed
Represents a
public static readonly GlyphColor PaleVioletRed
Field Value
PapayaWhip
Represents a
public static readonly GlyphColor PapayaWhip
Field Value
PeachPuff
Represents a
public static readonly GlyphColor PeachPuff
Field Value
Peru
Represents a
public static readonly GlyphColor Peru
Field Value
Pink
Represents a
public static readonly GlyphColor Pink
Field Value
Plum
Represents a
public static readonly GlyphColor Plum
Field Value
PowderBlue
Represents a
public static readonly GlyphColor PowderBlue
Field Value
Purple
Represents a
public static readonly GlyphColor Purple
Field Value
RebeccaPurple
Represents a
public static readonly GlyphColor RebeccaPurple
Field Value
Red
Represents a
public static readonly GlyphColor Red
Field Value
RosyBrown
Represents a
public static readonly GlyphColor RosyBrown
Field Value
RoyalBlue
Represents a
public static readonly GlyphColor RoyalBlue
Field Value
SaddleBrown
Represents a
public static readonly GlyphColor SaddleBrown
Field Value
Salmon
Represents a
public static readonly GlyphColor Salmon
Field Value
SandyBrown
Represents a
public static readonly GlyphColor SandyBrown
Field Value
SeaGreen
Represents a
public static readonly GlyphColor SeaGreen
Field Value
SeaShell
Represents a
public static readonly GlyphColor SeaShell
Field Value
Sienna
Represents a
public static readonly GlyphColor Sienna
Field Value
Silver
Represents a
public static readonly GlyphColor Silver
Field Value
SkyBlue
Represents a
public static readonly GlyphColor SkyBlue
Field Value
SlateBlue
Represents a
public static readonly GlyphColor SlateBlue
Field Value
SlateGray
Represents a
public static readonly GlyphColor SlateGray
Field Value
SlateGrey
Represents a
public static readonly GlyphColor SlateGrey
Field Value
Snow
Represents a
public static readonly GlyphColor Snow
Field Value
SpringGreen
Represents a
public static readonly GlyphColor SpringGreen
Field Value
SteelBlue
Represents a
public static readonly GlyphColor SteelBlue
Field Value
Tan
Represents a
public static readonly GlyphColor Tan
Field Value
Teal
Represents a
public static readonly GlyphColor Teal
Field Value
Thistle
Represents a
public static readonly GlyphColor Thistle
Field Value
Tomato
Represents a
public static readonly GlyphColor Tomato
Field Value
Transparent
Represents a
public static readonly GlyphColor Transparent
Field Value
Turquoise
Represents a
public static readonly GlyphColor Turquoise
Field Value
Violet
Represents a
public static readonly GlyphColor Violet
Field Value
Wheat
Represents a
public static readonly GlyphColor Wheat
Field Value
White
Represents a
public static readonly GlyphColor White
Field Value
WhiteSmoke
Represents a
public static readonly GlyphColor WhiteSmoke
Field Value
Yellow
Represents a
public static readonly GlyphColor Yellow
Field Value
YellowGreen
Represents a
public static readonly GlyphColor YellowGreen
Field Value
Properties
A
Gets the alpha component
public byte A { get; }
Property Value
B
Gets the blue component
public byte B { get; }
Property Value
G
Gets the green component
public byte G { get; }
Property Value
R
Gets the red component
public byte R { get; }
Property Value
Methods
Equals(GlyphColor)
Compares the GlyphColor for equality to this color.
public bool Equals(GlyphColor other)
Parameters
otherGlyphColorThe other GlyphColor to compare to.
Returns
- bool
True if the current color is equal to the
otherparameter; otherwise, false.
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
TryParseHex(string?, out GlyphColor)
Gets the hexadecimal string representation of the color instance in the format RRGGBBAA.
public static bool TryParseHex(string? value, out GlyphColor result)
Parameters
valuestringThe hexadecimal representation of the combined color components.
resultGlyphColorWhen this method returns, contains the GlyphColor equivalent of the hexadecimal input.
Returns
TryParseNamed(string?, out GlyphColor)
Attempts to parse the specified name into a corresponding named glyph color.
public static bool TryParseNamed(string? name, out GlyphColor result)
Parameters
namestringThe name of the glyph color to parse.
resultGlyphColorWhen this method returns, contains the parsed GlyphColor value if the parse operation succeeded; otherwise, contains the default value.
Returns
Operators
operator ==(GlyphColor, GlyphColor)
Compares two GlyphColor objects for equality.
public static bool operator ==(GlyphColor left, GlyphColor right)
Parameters
leftGlyphColorThe GlyphColor on the left side of the operand.
rightGlyphColorThe GlyphColor on the right side of the operand.
Returns
- bool
True if the current left is equal to the
rightparameter; otherwise, false.
operator !=(GlyphColor, GlyphColor)
Compares two GlyphColor objects for inequality.
public static bool operator !=(GlyphColor left, GlyphColor right)
Parameters
leftGlyphColorThe GlyphColor on the left side of the operand.
rightGlyphColorThe GlyphColor on the right side of the operand.
Returns
- bool
True if the current left is unequal to the
rightparameter; otherwise, false.