Ext.Net.TabPanelBase.BeforeItemAdd C# (CSharp) Method

BeforeItemAdd() protected method

protected BeforeItemAdd ( Component item ) : void
item Component
return void
        protected override void BeforeItemAdd(Component item)
        {
            base.BeforeItemAdd(item);

            if (!(item is BoxComponentBase))
            {
                throw new InvalidOperationException(string.Format("Invalid type of Control ({0}). Only Components which inherit from Ext.Net.BoxComponent can be added to this ({1}) Items Collection.", item.GetType(), this.GetType()));
            }
        }