Hex.ToHexString
Extension Method in Hex
Declaration
public static string ToHexString(this Color color)Description
Converts the color to a hexadecimal string in the RGB format (RRGGBB), e.g., "#ffff00".
Parameters
| color | The color to convert. |
Returns
| string | The hexadecimal string. |