Set Font Size, Font Color and Font Name for a NewTexLine
Hello,
I am trying to create a new text line on a graphic frame.
The line is created corretly, in the correct position and with the correct text.
But I cannot see any option to set the font size, the font color and font name for this content.
This is what I tried so far:
var graphic = null;
var doc = app.ActiveDoc;
graphic = doc.FirstSelectedGraphicInDoc;
var frameParent = graphic.FrameParent;
var textLineObj = doc.NewTextLine(frameParent);
textLineObj.LocX = 20 * MM;
textLineObj.LocY = 50 * MM;
var textLocation = new TextLoc(textLineObj, 0);
doc.AddText(textLocation, "Hello World");
textLineObj.Width = 30 * MM;
textLineObj.Height = 10 * MM;
textLineObj.Color = Constants.FV_COLOR_BLACK;
textLineObj.Fill = Constants.FV_FILL_BLACK;
doc.Redisplay();
