Re: Color data type

Peter Ritchie <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <LISTSERV%[email protected]>
Color.Empty is intended for such things.

Color colour = Color.Empty;
// TODO: assign another colour
if(colour == Color.Empty)
{
  Trace.WriteLine("No colour assigned");
}

Color.Empty is actually the same as Color.Black with a 0 Alpha.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.