Main Content

removeColumn

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

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

Syntax

tableControl.removeColumn(columnIndex)

Description

tableControl.removeColumn(columnIndex) removes a column from the specified index 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: string

Column index number of the custom table from which the column is to be removed.

For example, '4'.

Examples

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

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

% Remove the third column.
tableControl.removeColumn(3); 

Version History

Introduced in R2019a