Main Content


Display, hide, size, and position Simulink Library Browser


Use LibraryBrowser.LBStandalone objects to programmatically display, hide, size, position, and refresh the Simulink® Library Browser in standalone mode. For more information, see Library Browser in Standalone Mode, show, hide, getPosition, setPosition, and refresh. To interact with a LibraryBrowser.LBStandalone object, create and get the handle of the object, then set the object properties or run the object functions.


To create and get the handle of the Library Browser object, use either slLibraryBrowser or LibraryBrowser.LibraryBrowser2.


When you use the slLibraryBrowser to get the handle:

  • If the Library Browser is open in standalone mode, the Library Browser window moves in front of all other Simulink windows.

  • If the Library Browser is not open in standalone mode, the Library Browser opens in standalone mode.


expand all

Always put the Library Browser window on top of other Simulink Editor windows, specified as a numeric or logical 1 (true) or 0 (false).

Object Functions

refreshRefresh Simulink Library Browser
showDisplay Simulink Library Browser
hideHide Simulink Library Browser
getPositionGet position of Simulink Library Browser
setPositionSet position of Simulink Library Browser


collapse all

Create and get the handle of the LibraryBrowser.LBStandalone object that lets you programmatically access the Library Browser.

lb = LibraryBrowser.LibraryBrowser2;

Set the IsOnTop property of the Library Browser to 1 (true), using dot notation to access the property.

lb.IsOnTop = 1;


The LibraryBrowser.LBStandalone object does not allow you to programmatically act on a docked Library Browser. To use the LibraryBrowser.LBStandalone object, open the Library Browser in standalone mode by clicking the Launch standalone library browser button Launch standalone library browser button.

Version History

Introduced in R2014b

expand all