Main Content

LibraryBrowser.LibraryBrowser2

Get handle of Library Browser object

Description

example

libraryhandle = LibraryBrowser.LibraryBrowser2 creates the Library Browser object LibraryBrowser.LBStandalone and returns the object handle. When you have the object handle, you can use the object properties and functions to display, hide, size, position, and refresh the Library Browser in standalone mode. For more information, see Library Browser in Standalone Mode, LibraryBrowser.LBStandalone, show, hide, getPosition, setPosition, and refresh.

Note

You can also use slLibraryBrowser to create and get the handle of the Library Browser object.

When you use slLibraryBrowser to get the object 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.

Examples

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;

Limitations

The LibraryBrowser.LibraryBrowser2 function does not act on a docked Library Browser. To use the LibraryBrowser.LibraryBrowser2 function, 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