Let's have the PmgWTable object in the oTable variable placed in the graphics editor.
var TextOfCell;
var oTable = pMe;
oTable.FocusedRow = 11;
oTable.FocusedCol = 2;
TextOfCell = Pm.ToNumber(oTable.FocusedCellText);
//color setting by RGB String in the form "#RRGGBB"
oTable.SetCellForeColor(11, 2, TextOfCell < 20 ? "#ff0000" : "#000000");