Function_reference |

## 4.1: uix.Empty

Create an empty space

`obj``= uix.Empty(``)`
  creates an empty space object that can be used in layouts to add gaps between other elements.
`obj``= uix.Empty(``param``,``value``,``...``)`
  also sets one or more property values.

### uix.Empty properties

The empty space is achieved using a container that monitors its parent's color and changes its own to match.

Property | Value | Description
--- | --- | ---
`BeingDeleted` | on | off | Deletion status.
`HandleVisibility` | on | off | Visibility of the object.
`Parent` | empty GraphicsPlaceholder array | figure | container | Parent of the object.
`Position` | [x y w h] | Position (x,y) and size (w,h) within figure or container.
`Tag` | string | Tag to associate with object.
`Type` | string | Type of graphics object.
`Units` | inches | centimeters | normalized | points | pixels | characters | Position units.
`Visible` | on | off | Visibility.

### For example:

    f = figure();
    box = uix.HBox( 'Parent', f, 'Spacing', 5 );
    uicontrol( 'Parent', box, 'Background', 'r' )
    uix.Empty( 'Parent', box )
    uicontrol( 'Parent', box, 'Background', 'g' )

See also:

- `uix.HBox` - for arranging widgets horizontally

© 2024 The MathWorks Ltd `•` Terms of Use `•` Patents `•` Trademarks