Main Content

getNumberOfRows

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

Get the number of rows available in a custom table

Syntax

numberOfRows = tableControl.getNumberOfRows

Description

numberOfRows = tableControl.getNumberOfRows gets the number of rows in a custom table.

Output Arguments

expand all

Number of rows in the custom table returned as an integer.

Examples

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

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

% Get number of rows.
numberOfRows = tableControl.getNumberOfRows; 

Version History

Introduced in R2019a