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
gets the number of columns in a custom table.numberOfColumns
= tableControl
.getNumberOfColumns
Output Arguments
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