This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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