[]
Provides extension methods for working with colors in the context of HTML color names and color manipulation.
public static class ColorExtension
Name | Description |
---|---|
ApplyTransparency(Color, double) | Adjusts the color with the provided transparency. |
IsKnownColor(Color) | Determines whether the color is a known color. |
IsTransparent(Color) | Determines whether the color is fully transparent. |
ToColor(string) | Converts an HTML color name to a Color object. |
ToColor(string, Color) | Converts an HTML color name to a Color object, or returns a default color if the name is null or empty. |
ToHtml(Color) | Converts a given color to a string that can be used in HTML code. |
ToRgbString(Color) | Converts a given color to a hexadecimal string representation. |