Page 1 of 1

Change StiText color

Posted: Tue Sep 05, 2017 1:13 pm
by hugo
Hello,

I inject a text on my report with dynamic code (with AS3/Flex).

brandText = new StiText(new StiRectangle(9.6, 28, 10, 40.6), _brandText);
brandText.font = new StiFont("Arial", 8, "Point", 2);
---

How to change the text color ?

Re: Change StiText color

Posted: Wed Sep 06, 2017 7:18 pm
by Alex K.
Hello,

Please try to use the following code:
text.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Red);

Thank you.