Documentation

LibraryBrowser.LibraryBrowser2 class

Package: LibraryBrowser
Superclasses:

Simulink Library Browser

Description

Programmatically display, hide, size, and position the Simulink® Library Browser.

Construction

lb = LibraryBrowser.LibraryBrowser2

Properties

expand all

Always put library window on top of other Simulink Editor windows, specified as 1 for always on top.

Example: lb.IsOnTop = 1

Methods

MethodMeaningExample
refreshUpdate the library browser display with changes that affect the library browser. Examples include adding a library to the library browser, removing a library from the library browser, and changes to your custom libraries, slblocks function, or sl_customization.m file. In general, refresh the library browser when you have made any changes that affect libraries on your MATLAB® path that are registered in the library browser. .
lb = LibraryBrowser.LibraryBrowser2;
refresh(lb)
showDisplay the library browser.
lb = LibraryBrowser.LibraryBrowser2;
show(lb)
hideHide the library browser.
lb = LibraryBrowser.LibraryBrowser2;
hide(lb)
getPositionGet the position of the library browser. Returned as four integers, in pixels: upper-left x coordinate, upper-left y coordinate, width, and depth.
lb = LibraryBrowser.LibraryBrowser2;
getPosition(lb)
ans =

    50   279   600   600
setPositionSet the position of the library browser. Use an array of integers, in pixels: upper-left x coordinate, upper-left y coordinate, width, and depth.
lb = LibraryBrowser.LibraryBrowser2;
setPosition(lb,[70 250 500 500])

Introduced in R2016b

Was this topic helpful?