Function reference previous pagenext page

4.1: uiextras.Empty Go back up one level

Create an empty space

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

uiextras.Empty properties

PropertyValueDescription
BeingDeleted [ on | off ]is the object in the process of being deleted.
Parent handleThe handle of the parent figure or container.
Position [x y w h]The position (x,y) and size (w,h) of the layout.
Tag stringA string that can be used to identify this object later.
Type stringthe object type (class).
Units [ inches | centimeters | normalized | points | pixels | characters ]The units of measurement for position the layout within its parent.
Visible [ on | off ]Is the object visible on screen.

For example:

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


See also:
© 2014 The MathWorks Ltd Terms of Use Patents Trademarks