Main Content

setPosition

Set position of Simulink Library Browser

Description

example

setPosition(lb,position) sets the position of the Simulink® Library Browser in standalone mode. For more information on standalone mode, see Library Browser in Standalone Mode.

Examples

collapse all

lb = LibraryBrowser.LibraryBrowser2;
setPosition(lb,[70 250 500 500])

Input Arguments

collapse all

Simulink Library Browser, specified as a LibraryBrowser.LBStandalone object.

New position of Library Browser, specified as a numeric array of integers, in pixels: upper-left x-coordinate, upper-left y-coordinate, width, and height.

Data Types: double

Limitations

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