Method FindKnownColor
FindKnownColor(Color?)
Converts Color to known color if its possible.
public static Color? FindKnownColor(Color? color)
Parameters
colorColorColor.
Returns
- Color
If IsKnownColor for
colorreturnstrue, color is returned as is; otherwise list of known colors is searched forcolorARGB and and if it is found,coloris modified to become a known color.