API Reference
RGBColor
Predefined colors (potential for autogeneration)
Inheritance
- Object
- RGBColor
Constructors
public RGBColor(String colorString) #Public constructor that accepts hex color strings like "#111827", "#FFF", "111827" or RGBA format like "rgba(255, 0, 0, 0.5)"
Parameters
- colorString System.String
- Color string in hex or RGBA format
Methods
public static RGBColor FromArgb(Int32 alpha, Int32 red, Int32 green, Int32 blue) #RGBColorCreates a color from ARGB components (0..255).
Parameters
- alpha System.Int32
- Alpha 0..255.
- red System.Int32
- Red 0..255.
- green System.Int32
- Green 0..255.
- blue System.Int32
- Blue 0..255.
public static RGBColor FromArgb(Int32 red, Int32 green, Int32 blue) #RGBColorCreates an opaque color from RGB components (0..255).
Parameters
- red System.Int32
- Red 0..255.
- green System.Int32
- Green 0..255.
- blue System.Int32
- Blue 0..255.
public static RGBColor FromHex(String hexColor) #RGBColorCreates an RGBColor from a hex color string like "#111827", "#FFF", or "111827"
Parameters
- hexColor System.String
- Hex color string with or without # prefix
Returns
RGBColor instance
ParseColorString(System.String colorString) #Parses a color string in hex or RGBA format and sets the RGB values Supports formats: "#RRGGBB", "#RGB", "RRGGBB", "RGB", "rgba(r,g,b,a)", "rgb(r,g,b)"
Parameters
- colorString System.String
- The color string to parse
ParseHexColor(System.String hexColor) #Parses a hex color string and sets the RGB values Supports formats: "#RRGGBB", "#RGB", "RRGGBB", "RGB"
Parameters
- hexColor System.String
- The hex color string to parse
ParseRgbaColor(System.String rgbaColor) #Parses an RGBA color string like "rgba(255, 0, 0, 0.5)" or "rgb(255, 0, 0)"
Parameters
- rgbaColor System.String
- The RGBA color string to parse
public String ToHex() #StringConverts this color to a hexadecimal string suitable for HTML use.
Returns
The hex representation beginning with #.
public override String ToString() #StringReturns the string representation of this color. Returns RGBA format when alpha is not full opacity, otherwise hex format.
public static Boolean TryFromHex(String hexColor, out RGBColor result) #BooleanTries to create an RGBColor from a hex color string
Parameters
- hexColor System.String
- Hex color string with or without # prefix
- result HtmlForgeX.RGBColor@
- The parsed RGBColor, or null if parsing failed
Returns
True if parsing succeeded, false otherwise
Inherited Methods
Properties
public static RGBColor AtomicTangerine { get; } #Gets the AtomicTangerine color.
public static RGBColor BakersChocolate { get; } #Gets the BakersChocolate color.
public static RGBColor BattleshipGrey { get; } #Gets the BattleshipGrey color.
public static RGBColor BlanchedAlmond { get; } #Gets the BlanchedAlmond color.
public static RGBColor BlueMarguerite { get; } #Gets the BlueMarguerite color.
public static RGBColor BrightTurquoise { get; } #Gets the BrightTurquoise color.
public static RGBColor BritishRacingGreen { get; } #Gets the BritishRacingGreen color.
public static RGBColor CamouflageGreen { get; } #Gets the CamouflageGreen color.
public static RGBColor CastletonGreen { get; } #Gets the CastletonGreen color.
public static RGBColor CherryBlossomPink { get; } #Gets the CherryBlossomPink color.
public static RGBColor ChlorophyllGreen { get; } #Gets the ChlorophyllGreen color.
public static RGBColor CornflowerBlue { get; } #Gets the CornflowerBlue color.
public static RGBColor CyanCobaltBlue { get; } #Gets the CyanCobaltBlue color.
public static RGBColor CyanCornflowerBlue { get; } #Gets the CyanCornflowerBlue color.
public static RGBColor DarkCandyAppleRed { get; } #Gets the DarkCandyAppleRed color.
public static RGBColor DarkElectricBlue { get; } #Gets the DarkElectricBlue color.
public static RGBColor DarkImperialBlue { get; } #Gets the DarkImperialBlue color.
public static RGBColor DarkJungleGreen { get; } #Gets the DarkJungleGreen color.
public static RGBColor DarkMediumGray { get; } #Gets the DarkMediumGray color.
public static RGBColor DarkMidnightBlue { get; } #Gets the DarkMidnightBlue color.
public static RGBColor DarkOliveGreen { get; } #Gets the DarkOliveGreen color.
public static RGBColor DarkPastelBlue { get; } #Gets the DarkPastelBlue color.
public static RGBColor DarkPastelGreen { get; } #Gets the DarkPastelGreen color.
public static RGBColor DarkPastelPurple { get; } #Gets the DarkPastelPurple color.
public static RGBColor DarkPowderBlue { get; } #Gets the DarkPowderBlue color.
public static RGBColor DarkSpringGreen { get; } #Gets the DarkSpringGreen color.
public static RGBColor DarkTerraCotta { get; } #Gets the DarkTerraCotta color.
public static RGBColor DartmouthGreen { get; } #Gets the DartmouthGreen color.
public static RGBColor DeepAquamarine { get; } #Gets the DeepAquamarine color.
public static RGBColor DeepCarminePink { get; } #Gets the DeepCarminePink color.
public static RGBColor DeepCarrotOrange { get; } #Gets the DeepCarrotOrange color.
public static RGBColor DeepGreenCyanTurquoise { get; } #Gets the DeepGreenCyanTurquoise color.
public static RGBColor DeepJungleGreen { get; } #Gets the DeepJungleGreen color.
public static RGBColor DeepSpaceSparkle { get; } #Gets the DeepSpaceSparkle color.
public static RGBColor DesaturatedCyan { get; } #Gets the DesaturatedCyan color.
public static RGBColor ElectricCrimson { get; } #Gets the ElectricCrimson color.
public static RGBColor ElectricIndigo { get; } #Gets the ElectricIndigo color.
public static RGBColor ElectricLavender { get; } #Gets the ElectricLavender color.
public static RGBColor ElectricPurple { get; } #Gets the ElectricPurple color.
public static RGBColor ElectricUltramarine { get; } #Gets the ElectricUltramarine color.
public static RGBColor ElectricViolet { get; } #Gets the ElectricViolet color.
public static RGBColor ElectricYellow { get; } #Gets the ElectricYellow color.
public static RGBColor EnglishLavender { get; } #Gets the EnglishLavender color.
public static RGBColor FashionFuchsia { get; } #Gets the FashionFuchsia color.
public static RGBColor FuzzyWuzzyBrown { get; } #Gets the FuzzyWuzzyBrown color.
public static RGBColor GrannySmithApple { get; } #Gets the GrannySmithApple color.
public static RGBColor HalfColonialWhite { get; } #Gets the HalfColonialWhite color.
public static RGBColor HalfDutchWhite { get; } #Gets the HalfDutchWhite color.
public static RGBColor HalfSpanishWhite { get; } #Gets the HalfSpanishWhite color.
public static RGBColor HollywoodCerise { get; } #Gets the HollywoodCerise color.
public static RGBColor IlluminatingEmerald { get; } #Gets the IlluminatingEmerald color.
public static RGBColor ImperialPurple { get; } #Gets the ImperialPurple color.
public static RGBColor InterdimensionalBlue { get; } #Gets the InterdimensionalBlue color.
public static RGBColor InternationalKleinBlue { get; } #Gets the InternationalKleinBlue color.
public static RGBColor InternationalOrange { get; } #Gets the InternationalOrange color.
public static RGBColor ItalianSkyBlue { get; } #Gets the ItalianSkyBlue color.
public static RGBColor JapaneseCarmine { get; } #Gets the JapaneseCarmine color.
public static RGBColor JapaneseViolet { get; } #Gets the JapaneseViolet color.
public static RGBColor LanguidLavender { get; } #Gets the LanguidLavender color.
public static RGBColor LavenderIndigo { get; } #Gets the LavenderIndigo color.
public static RGBColor LavenderMagenta { get; } #Gets the LavenderMagenta color.
public static RGBColor LavenderPurple { get; } #Gets the LavenderPurple color.
public static RGBColor LemonYellowCrayola { get; } #Gets the LemonYellowCrayola color.
public static RGBColor LightCarminePink { get; } #Gets the LightCarminePink color.
public static RGBColor LightCobaltBlue { get; } #Gets the LightCobaltBlue color.
public static RGBColor LightCornflowerBlue { get; } #Gets the LightCornflowerBlue color.
public static RGBColor LightFrenchBeige { get; } #Gets the LightFrenchBeige color.
public static RGBColor LightFuchsiaPink { get; } #Gets the LightFuchsiaPink color.
public static RGBColor LightGoldenrodYellow { get; } #Gets the LightGoldenrodYellow color.
public static RGBColor LightMediumOrchid { get; } #Gets the LightMediumOrchid color.
public static RGBColor LightMossGreen { get; } #Gets the LightMossGreen color.
public static RGBColor LightPastelPurple { get; } #Gets the LightPastelPurple color.
public static RGBColor LightSalmonPink { get; } #Gets the LightSalmonPink color.
public static RGBColor LightSlateGray { get; } #Gets the LightSlateGray color.
public static RGBColor LightSteelBlue { get; } #Gets the LightSteelBlue color.
public static RGBColor LightThulianPink { get; } #Gets the LightThulianPink color.
public static RGBColor MacaroniAndCheese { get; } #Gets the MacaroniAndCheese color.
public static RGBColor MagentaCrayola { get; } #Gets the MagentaCrayola color.
public static RGBColor MagentaPantone { get; } #Gets the MagentaPantone color.
public static RGBColor MagentaProcess { get; } #Gets the MagentaProcess color.
public static RGBColor MaximumBlueGreen { get; } #Gets the MaximumBlueGreen color.
public static RGBColor MaximumBluePurple { get; } #Gets the MaximumBluePurple color.
public static RGBColor MaximumGreenYellow { get; } #Gets the MaximumGreenYellow color.
public static RGBColor MaximumRedPurple { get; } #Gets the MaximumRedPurple color.
public static RGBColor MaximumYellowRed { get; } #Gets the MaximumYellowRed color.
public static RGBColor MediumAquamarine { get; } #Gets the MediumAquamarine color.
public static RGBColor MediumCandyAppleRed { get; } #Gets the MediumCandyAppleRed color.
public static RGBColor MediumChampagne { get; } #Gets the MediumChampagne color.
public static RGBColor MediumSeaGreen { get; } #Gets the MediumSeaGreen color.
public static RGBColor MediumSlateBlue { get; } #Gets the MediumSlateBlue color.
public static RGBColor MediumSpringGreen { get; } #Gets the MediumSpringGreen color.
public static RGBColor MediumTurquoise { get; } #Gets the MediumTurquoise color.
public static RGBColor MediumVioletRed { get; } #Gets the MediumVioletRed color.
public static RGBColor MetallicSeaweed { get; } #Gets the MetallicSeaweed color.
public static RGBColor MetallicSunburst { get; } #Gets the MetallicSunburst color.
public static RGBColor MiddleBlueGreen { get; } #Gets the MiddleBlueGreen color.
public static RGBColor MiddleBluePurple { get; } #Gets the MiddleBluePurple color.
public static RGBColor MiddleGreenYellow { get; } #Gets the MiddleGreenYellow color.
public static RGBColor MiddleRedPurple { get; } #Gets the MiddleRedPurple color.
public static RGBColor MiddleYellowRed { get; } #Gets the MiddleYellowRed color.
public static RGBColor MountainMeadow { get; } #Gets the MountainMeadow color.
public static RGBColor MountbattenPink { get; } #Gets the MountbattenPink color.
public static RGBColor NorthTexasGreen { get; } #Gets the NorthTexasGreen color.
public static RGBColor OutrageousOrange { get; } #Gets the OutrageousOrange color.
public static RGBColor PalatinateBlue { get; } #Gets the PalatinateBlue color.
public static RGBColor PalatinatePurple { get; } #Gets the PalatinatePurple color.
public static RGBColor PaleCornflowerBlue { get; } #Gets the PaleCornflowerBlue color.
public static RGBColor PaleMagentaPink { get; } #Gets the PaleMagentaPink color.
public static RGBColor PaleRobinEggBlue { get; } #Gets the PaleRobinEggBlue color.
public static RGBColor PaoloVeroneseGreen { get; } #Gets the PaoloVeroneseGreen color.
public static RGBColor PictorialCarmine { get; } #Gets the PictorialCarmine color.
public static RGBColor PortlandOrange { get; } #Gets the PortlandOrange color.
public static RGBColor PrincetonOrange { get; } #Gets the PrincetonOrange color.
public static RGBColor PsychedelicPurple { get; } #Gets the PsychedelicPurple color.
public static RGBColor PurpleMountainMajesty { get; } #Gets the PurpleMountainMajesty color.
public static RGBColor RazzleDazzleRose { get; } #Gets the RazzleDazzleRose color.
public static RGBColor ResolutionBlue { get; } #Gets the ResolutionBlue color.
public static RGBColor RichBrilliantLavender { get; } #Gets the RichBrilliantLavender color.
public static RGBColor RichElectricBlue { get; } #Gets the RichElectricBlue color.
public static RGBColor RocketMetallic { get; } #Gets the RocketMetallic color.
public static RGBColor SacramentoStateGreen { get; } #Gets the SacramentoStateGreen color.
public static RGBColor StPatricksBlue { get; } #Gets the StPatricksBlue color.
public static RGBColor SatinSheenGold { get; } #Gets the SatinSheenGold color.
public static RGBColor SchoolBusYellow { get; } #Gets the SchoolBusYellow color.
public static RGBColor SelectiveYellow { get; } #Gets the SelectiveYellow color.
public static RGBColor ShimmeringBlush { get; } #Gets the ShimmeringBlush color.
public static RGBColor SilverLakeBlue { get; } #Gets the SilverLakeBlue color.
public static RGBColor SizzlingSunrise { get; } #Gets the SizzlingSunrise color.
public static RGBColor SmashedPumpkin { get; } #Gets the SmashedPumpkin color.
public static RGBColor SpartanCrimson { get; } #Gets the SpartanCrimson color.
public static RGBColor SpanishCarmine { get; } #Gets the SpanishCarmine color.
public static RGBColor SpanishSkyBlue { get; } #Gets the SpanishSkyBlue color.
public static RGBColor SpanishViridian { get; } #Gets the SpanishViridian color.
public static RGBColor SpiroDiscoBall { get; } #Gets the SpiroDiscoBall color.
public static RGBColor StarCommandBlue { get; } #Gets the StarCommandBlue color.
public static RGBColor StilDeGrainYellow { get; } #Gets the StilDeGrainYellow color.
public static RGBColor SunburntCyclops { get; } #Gets the SunburntCyclops color.
public static RGBColor TangerineYellow { get; } #Gets the TangerineYellow color.
public static RGBColor TitaniumYellow { get; } #Gets the TitaniumYellow color.
public static RGBColor TropicalRainForest { get; } #Gets the TropicalRainForest color.
public static RGBColor TurquoiseGreen { get; } #Gets the TurquoiseGreen color.
public static RGBColor TwilightLavender { get; } #Gets the TwilightLavender color.
public static RGBColor UltramarineBlue { get; } #Gets the UltramarineBlue color.
public static RGBColor UnbleachedSilk { get; } #Gets the UnbleachedSilk color.
public static RGBColor UnitedNationsBlue { get; } #Gets the UnitedNationsBlue color.
public static RGBColor UniversityOfCaliforniaGold { get; } #Gets the UniversityOfCaliforniaGold color.
public static RGBColor UnmellowYellow { get; } #Gets the UnmellowYellow color.
public static RGBColor VeryLightAzure { get; } #Gets the VeryLightAzure color.
public static RGBColor VeryLightMalachiteGreen { get; } #Gets the VeryLightMalachiteGreen color.
public static RGBColor VeryLightTangelo { get; } #Gets the VeryLightTangelo color.
public static RGBColor VeryPaleOrange { get; } #Gets the VeryPaleOrange color.
public static RGBColor VeryPaleYellow { get; } #Gets the VeryPaleYellow color.
public static RGBColor VividTangerine { get; } #Gets the VividTangerine color.
public static RGBColor WildBlueYonder { get; } #Gets the WildBlueYonder color.
public static RGBColor WildStrawberry { get; } #Gets the WildStrawberry color.
public static RGBColor WildWatermelon { get; } #Gets the WildWatermelon color.
public static RGBColor ZinnwalditeBrown { get; } #Gets the ZinnwalditeBrown color.