Main Content

getNumberOfColumns

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

Get number of columns from the custom table

Syntax

numberOfColumns = tableControl.getNumberOfColumns

Description

numberOfColumns = tableControl.getNumberOfColumns gets the number of columns in a custom table.

Output Arguments

expand all

Number of columns 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 cell value.
numberOfColumns = tableControl.getNumberOfColumns; 

Version History

Introduced in R2019a