lock
Class: Simulink.dialog.MaskPartReference
Namespace: Simulink.dialog
Syntax
maskPartRefObj.lock
Description
maskPartRefObj.lock
locks the mask part reference
container maskPartRefObj
to prevent editing. A mask part reference
container saves parameters and dialog controls in an XML file. The XML file is referred to and
reused across multiple block masks. Locking the mask part reference container after saving the
mask prevents accidental changes from being propagated to the XML file.
Examples
Alternatives
Use the Mask Editor UI to lock the mask part reference container.
Version History
Introduced in R2024b