setEntryAlign

Specify table cell alignment

Syntax

setEntryAlign(table, row, column, alignment)

Description

setEntryAlign(table, row, column, alignment) specifies the cell alignment of the designated cell.

Input Arguments

table

Instantiation of the ModelAdvisor.Table class

row

An integer specifying row number

column

An integer specifying column number

alignment

Cell alignment, specified as one of the following:

  • 'left' (default)

  • 'right'

  • 'center'

Examples

table1 = ModelAdvisor.Table(2,3);
setHeading(table1, 'New Table');
.
.
.
setEntry(table1, 1, 1, 'First Entry');
setEntryAlign(table1, 1, 1, 'center');