Modify the value of the style attribute of the group control

In the form, there is a button, I want to modify the style attribute value of the group control when the button is clicked, but I found that the code does not take effect, this is why

[Form]
public class Form1 extends FormRun
{
    [Control("Button")]
    class FormButtonControl1
    {
        /// <summary>
        ///
        /// </summary>
        public void clicked()
        {
            super();
            FormGroupControl2.style(GroupStyle::SplitterHorizontalContainer);
            info('test');
        }

    }

}

Below is my form design