Re: Color data type
Peter Osucha <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
Thank you, Alex and Peter. (I apologize for not searching the 'Color' object first since 'Color.Empty' is described at the top of the MSDN page. I'm not sure why I didn't even think about looking at the Color structure itself.) Peter -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of Peter Ritchie Sent: Tuesday, May 01, 2007 3:26 PM To: [email protected] Subject: Re: [DOTNET-WINFORMS] Color data type 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.