Package: LibraryBrowser
Superclasses:
Simulink Library Browser
Programmatically display, hide, size, and position the Simulink® Library Browser.
lb
= LibraryBrowser.LibraryBrowser2
Method | Meaning | Example |
---|---|---|
refresh | Update 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) |
show | Display the library browser. | lb = LibraryBrowser.LibraryBrowser2; show(lb) |
hide | Hide the library browser. | lb = LibraryBrowser.LibraryBrowser2; hide(lb) |
getPosition | Get 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 |
setPosition | Set 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]) |