I load my graph (a template) and the text is already insert in the layer (in the color gray). Now I won't to write the text new with the following code.
GraphLayer glSum; GraphObject goSum; glSum=gpSumTest.Layers(0); goSum=glSum.GraphObjects("Text"); strLabelText.Format("f / Ghz \n S11 / dB \n S12 / dB \n S21 / dB \n S22 / dB"); goSum.Text=strLabelText;
And my problem is, I don't know how can I change the color of the string strLabelText
int iColor=2; // assign iColor the desired value of the color string strColor; strColor.Format("%d",iColor); string strLTcommand=goSum.GetName()+".color="+strColor; LT_execute(strLTcommand);