Back to Color
FromRGBMethod
Definition
- Namespace
- DOM.Elements.Graphics.Colors
- Assembly
- DOM.dll
Parses a string representation of the color and updates this instance accordingly.
FromRGB(string color)Parameters
- color
- A hex string, preset name, theme name, or system color name to parse.
Remarks
The method automatically detects the color model: Hex strings (with optional ) are treated as RGB / ARGB. # Names matching a are treated as theme colors. ThemeColorValues Names matching a are treated as scheme colors. SchemeColorValues Names matching a are treated as preset colors. PresetColorValues Names matching a are treated as system colors. SystemColorValues