Main Content

getSelectedRows

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

Get all the selected rows of a custom table

Syntax

selectedRows = tableControl.getSelectedRows()

Description

selectedRows = tableControl.getSelectedRows() fetches the information from the specified column of a custom table.

Output Arguments

expand all

Value of the specified rows, returned as a numeric array.

Examples

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

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

% Get selected rows.
selectedRows = tableControl.getSelectedRows(); 

ans =

     3     4

Version History

Introduced in R2019a