Design-Time Actions: Adding and Removing Controls and Layout Items

  • 2 minutes to read

The following table lists the design-time actions that can be used to add controls to and remove them from the Layout Control.

Action Effect
Dragging and dropping a control over the Layout Control's empty space (any region which is not occupied by controls within the Layout Control) Creates a new Layout Item with the dropped control. The visibility of the layout item's text label is determined depending upon the control's type. See the Size and Alignment topic for more information.
Dragging and dropping a control over the Layout Control's empty space while holding the SHIFT key down. Creates a new layout item with the dropped control. The text label is made visible by setting the BaseLayoutItem.TextVisible property to true.
Dragging and dropping a control over the Layout Control's empty space while holding the CTRL key down. Creates a new layout item with the dropped control. The text label is hidden by setting the BaseLayoutItem.TextVisible property to false.
Dragging a control away from the Layout Control. Destroys the corresponding layout item.
Deleting a control (selecting a control and pressing the DEL key) Destroys the corresponding layout item.
Deleting a layout item (selecting a layout item and pressing the DEL key) Destroys the layout item's control.
Deleting a layout group (selecting a group and pressing the DEL key) Destroys the layout items and their controls that are displayed within this group.
Deleting the Layout Control (selecting it and pressing the DEL key) Destroys the layout items, groups and their controls that are displayed within the Layout Control.