Main Content
swapRows
Class: Simulink.dialog.parameter.CustomTable
Namespace: Simulink.dialog.parameter
Swap two existing rows in a custom table
Syntax
tableControl.swapRows(rowIndex1, rowIndex2)
Description
swaps
specified rows in a custom table.tableControl
.swapRows(rowIndex1
, rowIndex2
)
Input Arguments
Examples
% Get block mask handle. maskObj = Simulink.Mask.get(gcb); % Get custom table handle. tableControl = maskObj.getDialogControl('myTable'); % Swap rows 3 and 6. tableControl.swapRows(3,6);
Version History
Introduced in R2019a