Main Content


Class: Simulink.dialog.Container
Package: Simulink.dialog

Remove dialog control element from mask dialog box



successIndicator = maskVariable.removeDialogControl(controlIdentifier) removes dialog control element, specified by controlIndentifier, like text, hyperlinks, or tabs from a mask dialog box. First get the mask object and assign it to the variable maskVariable.

Successful removal of a dialog control element returns a Boolean value of 1.

Input Arguments

expand all

Programmatic identifier for the dialog control element of mask dialog box, specified as a character vector.


expand all

% Get mask object on the Gain block in the model Engine.

maskObj = Simulink.Mask.get('Engine/Gain');

% Remove element named AllTab from mask dialog box.

maskTab = maskObj.removeDialogControl('AllTab');

Version History

Introduced in R2013b