Please enable JavaScript to view this site.

Creates a 32-bit integer color value from a known color name. Check Microsoft's documentation of the KnownColor enumeration.

 

int ColorFromName(string name)

 

name

Name of a predefined color.

Example

ColorFromName("SandyBrown")

Returns the color argb(255, 244, 164, 96).

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC