Object Reference : Object View and Procedure Reference : Table
  
 
settextcolor
Changes the text color of the specified table cells.
Syntax
table_name.settextcolor(cell_range) color_arg
where cell_range describes the table cells to be modified, and color_arg specifies the color to be applied to the text in the cells. See Table::setfillcolor for the syntax for cell_range and color_arg.
Examples
To set an orange text color for the cell in the second row and sixth column of TAB1, you may use:
tab1.settextcolor(f2) @rgb(255, 128, 0)
tab1.settextcolor(2,f) @RGB(255, 128, 0)
tab1.settextcolor(2,6) orange
tab1.settextcolor(r2c6) orange
You may also specify a blue color for the text in an entire column, or an entire row,
tab1.settextcolor(C) @RGB(0, 0, 255)
tab1.settextcolor(2) blue
or a green color for the text in cells in a rectangular region:
tab1.settextcolor(R2C3:R3C6) green
tab1.settextcolor(r2c3,r3c6) green
tab1.settextcolor(2,C,3,F) @rgb(0, 255, 0)
tab1.settextcolor(2,3,3,6) @rgb(0, 255, 0)
Cross-references
See Table::setfont and Table::setfillcolor for details on changing the text font and cell background color.
For additional discussion of table commands see “Working with Tables and Spreadsheets”.
See also “Table and Text Objects” for a discussion and examples of table formatting in EViews.