Main Content

getNumberOfColumns

Class: Simulink.dialog.parameter.CustomTable
Package: Simulink.dialog.parameter

Get value of a table cell

Since R2019a

Syntax

numberOfColumns = tableControl()

Description

numberOfColumns = tableControl() 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