Main Content

setColHeadingAlign

Specify column title alignment

Syntax

setColHeadingAlign(table, column, alignment)

Description

setColHeadingAlign(table, column, alignment) specifies the alignment of the column heading.

Input Arguments

table

Instantiation of the ModelAdvisor.Table class

column

An integer specifying the column number

alignment

Alignment of the column heading. alignment can have one of the following values:

  • left (default)

  • right

  • center

Examples

table1 = ModelAdvisor.Table(2, 3);
setColHeading(table1, 1, 'Header 1');
setColHeadingAlign(table1, 1, 'center');
setColHeading(table1, 2, 'Header 2');
setColHeadingAlign(table1, 2, 'center');
setColHeading(table1, 3, 'Header 3');
setColHeadingAlign(table1, 3, 'center');