Habanero.Faces.Win.ButtonGroupControlWin.AddButton C# (CSharp) Method

AddButton() public method

Adds a new button to the control with a specified name
public AddButton ( string buttonName ) : IButton
buttonName string The name to appear on the button
return IButton
        public IButton AddButton(string buttonName)
        {
            IButton button = _buttonGroupControlManager.AddButton(buttonName);
            this.Height = _buttonGroupControlManager.Height;
            Controls.Add((Control)button);
            ButtonSizePolicy.RecalcButtonSizes(_buttonGroupControlManager.LayoutManager.ManagedControl.Controls);
            return button;
        }

Same methods

ButtonGroupControlWin::AddButton ( string buttonName, EventHandler clickHandler ) : IButton
ButtonGroupControlWin::AddButton ( string buttonName, string buttonText, EventHandler clickHandler ) : IButton