Main Content

addColumn

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

Add new column in the custom table

Syntax

tableControl.addColumn(Name, Value)

Description

tableControl.addColumn(Name, Value) adds a column with the specified properties in 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 Simulink.dialog.Container.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: char vector | cell array

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Examples

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

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

% Add column.
tableControl.addColumn('Name','HDL Name','Type','edit'); 

Version History

Introduced in R2019a