Main Content

removeDialogControl

Class: Simulink.Mask
Package: Simulink

Remove dialog control element from mask dialog box

Description

example

success = 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.

Examples

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.

p = maskObj.removeDialogControl('AllTab');

Version History

Introduced in R2013b