CreateDefaultItem() protected method

protected CreateDefaultItem ( string text, Image image, EventHandler onClick ) : ToolStripItem
text string
image Image
onClick EventHandler
return ToolStripItem
Example #1
0
        public ToolStripItem Add(Image image)
        {
            ToolStripItem tsb = owner.CreateDefaultItem(string.Empty, image, null);

            this.Add(tsb);
            return(tsb);
        }
Example #2
0
        public ToolStripItem Add(string text, Image image, EventHandler onClick)
        {
            ToolStripItem item = _owner.CreateDefaultItem(text, image, onClick);

            Add(item);
            return(item);
        }