ComponentFactory.Krypton.Toolkit.KryptonContextMenuColorColumns.ContainsColor C# (CSharp) Method

ContainsColor() public method

Does the provided color exist in the definition.
public ContainsColor ( Color color ) : bool
color Color Color to find.
return bool
        public bool ContainsColor(Color color)
        {
            if ((_colors != null) && (color != null))
            {
                foreach (Color[] column in _colors)
                    foreach (Color row in column)
                        if (color.Equals(row))
                            return true;
            }

            return false;
        }