[]
        
(Showing Draft Content)

IGroupBox

Interface IGroupBox

All Superinterfaces:
IContentControl, IControl, IControlT<IGroupBox>

public interface IGroupBox extends IControlT<IGroupBox>, IContentControl
Represents a group box form control on a worksheet.

A group box is a content control that can display caption text and define a visual boundary for related form controls. It is commonly used to group option buttons so that buttons placed within the same group box behave as a related set.


 IGroupBox groupBox = worksheet.getControls().addGroupBox(20, 20, 140, 80);
 groupBox.setText("Priority");
 groupBox.setDisplay3DShading(true);
 IOptionButton optionButton = worksheet.getControls().addOptionButton(30, 45, 90, 18);
 optionButton.setText("High");
 
  • Method Details

    • getDisplay3DShading

      boolean getDisplay3DShading()
      Gets whether the group box uses 3D style.

      Returns true if 3D shading is displayed for the group box; otherwise, false.

      
       IGroupBox groupBox = worksheet.getControls().addGroupBox(20, 20, 140, 80);
       groupBox.setText("Priority");
       groupBox.setDisplay3DShading(true);
       boolean display3DShading = groupBox.getDisplay3DShading();
       
      Returns:
      true if 3D shading is displayed for the group box; otherwise, false.
    • setDisplay3DShading

      void setDisplay3DShading(boolean value)
      Sets whether the group box uses 3D style.

      Sets true if 3D shading is displayed for the group box; otherwise, false.

      
       IGroupBox groupBox = worksheet.getControls().addGroupBox(20, 20, 140, 80);
       groupBox.setText("Priority");
       groupBox.setDisplay3DShading(true);
       
      Parameters:
      value - true if 3D shading is displayed for the group box; otherwise, false.