public int IndexOf( System.Drawing.Color c )
{
if (c.A == 0)
{
return -1;
}
if( c.A != 255 )
{
c = System.Drawing.Color.FromArgb( 255 , c );
}
for (int iCount = 0; iCount < myItems.Count; iCount++)
{
System.Drawing.Color color = (System.Drawing.Color)myItems[iCount];
if (color.ToArgb() == c.ToArgb())
{
return iCount;
}
}
return -1 ;
}