Main Content


Class: Simulink.dialog.parameter.CustomTable
Namespace: Simulink.dialog.parameter

Remove an existing row from a specific position in a custom table




tableControl.removeRow(rowIndex) removes the row from a specified position in a custom table.

Input Arguments

expand all

Handle to the custom table, specified as an object. You can use the getDialogControl command to get the custom table handle. For more information, see Simulink.dialog.Container.getDialogControl.

Consider, for example, tableControl = maskObj.getDialogControl(TableName). Here, maskObj is the mask object and TableName is the name of the custom table.

Data Types: integer

Row index number of the custom table from which the row is to be removed.

For example, '4'.


% Get block mask handle.
maskObj = Simulink.Mask.get(gcb); 

% Get custom table handle.
tableControl = maskObj.getDialogControl('myTable');

% Remove row with index number 6.

Version History

Introduced in R2019a