Change StiText color

Stimulsoft Reports.Flex discussion
Locked
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Change StiText color

Post 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 ?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Change StiText color

Post by Alex K. »

Hello,

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

Thank you.
Locked