Name
ColorTranslator
Synopsis
This class is used to translate a Color
to and
from various interop color representations, including an HTML color
string, Win32 GDI, and Win32 OLE colors.
public sealed class ColorTranslator { // Public Static Methods public static Color FromHtml(string htmlColor); public static Color FromOle(int oleColor); public static Color FromWin32(int win32Color); public static string ToHtml(Color c); public static int ToOle(Color c); public static int ToWin32(Color c); }
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.