ComponentFactory.Krypton.Toolkit.KryptonReadOnlyControls.RemoveByKey C# (CSharp) Method

RemoveByKey() public method

Removes the child control with the specified key.
public RemoveByKey ( string key ) : void
key string The name of the child control to remove.
return void
        public override void RemoveByKey(string key)
        {
            if (AllowRemoveInternal)
                base.RemoveByKey(key);
            else
            {
                if (ContainsKey(key))
                    throw new NotSupportedException("ReadOnly controls collection");
            }
        }