views:

50

answers:

1

I can get the custom colours used in the ColorDialog (vb.net) by using myColorDialog.CustomColors, which will return me an array of colours as integer values.

Is it possible to get the 48 Basic Colors in a similar way?

A: 

They are available as static properties of the struct System.Drawing.Color

Examples:

Color.AliceBlue
Color.AntiqueWhite
Color.Aqua

etc.

Edit: Sorry, there are more here than in the dialog, so it may not be what you want.

Adam Ruth
Thanks Adam, you're right...not quite what I'm after. I am hoping to find an array of basic colors so that I can check whether the current background color of a table cell is one of the basic colors or not...
Hannah