Ext.Net.AccordionActionList.GetSortedActionItems C# (CSharp) Method

GetSortedActionItems() private method

private GetSortedActionItems ( ) : System.ComponentModel.Design.DesignerActionItemCollection
return System.ComponentModel.Design.DesignerActionItemCollection
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            this.AddHeaderItem(new DesignerActionHeaderItem("Actions", "600"));

            DesignerActionMethodItem add = new DesignerActionMethodItem(this, "AddPanel", "Add Panel", "600");
            DesignerActionMethodItem remove = new DesignerActionMethodItem(this, "RemovePanel", "Remove panel", "600", "Remove active panel");
            AccordionLayout layout = (AccordionLayout)this.Control;
            this.AddMethodItem(add);

            if (layout.ExpandedPanelIndex > -1)
            {
                this.AddMethodItem(remove);
            }
            else
            {
                this.RemoveMethodItem(remove);
            }

            return base.GetSortedActionItems();
        }
    }