Main Content

getColumn

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

Get the column properties

Syntax

FetchColumn = tableControl.getColumn(column)

Description

FetchColumn = tableControl.getColumn(column) fetches the information from the specified column of the custom table.

Input Arguments

expand all

Handle to the custom table, specified as an object. You can use the getDialogControl command to get the custom table handle. For more information, see getDialogControl.

Consider, for example, tableControl = maskObj.getDialogControl(TableName). Here, maskObj is the mask object and TableName is the name of the custom table.

Data Types: integer

Index of the column in the custom table.

For example, '4'.

Output Arguments

expand all

Column object

Examples

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

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

% Get properties of column 3.
tableControl.getColumn(3); 

ans = 

  TableParamColumnInfo with properties:

           Name: 'Data Type'
           Type: 'popup'
        Enabled: 'on'
    TypeOptions: {4×1 cell}
Introduced in R2019a