Page 1 of 1

Transparency TeeChart.Styles.Shape

Posted: Wed Apr 05, 2006 5:50 pm
by 8127944
How can I change the transparency value of a shape. To change the transparency of the brush or of the pen do not work.

Thanks for your help, Markus

I am using version 1.1.1864.22788

Posted: Thu Apr 06, 2006 8:28 am
by narcis
Hi Markus,

You can do something like this:

Code: Select all

      annotation1.Shape.Transparency = 80;
or this:

Code: Select all

      annotation1.Shape.Transparent = true;

Posted: Thu Apr 06, 2006 9:01 am
by 8127944
Sorry my question was not clear.

I am talking about the calss: Steema.TeeChart.Styles.Shape

This class does not have a Transparency property.

Thanks in advance.

Posted: Thu Apr 06, 2006 11:49 am
by narcis
Hi Markus,

Yes, you are right. I thought you where speaking about generic TeeCahrt shapes. I've added the issue to our defect list (TF02011355) to be fixed for future releases. In the meantime, the solution is using:

Code: Select all

      shape1.Color = Color.FromArgb(150, 255, 0, 0);
Where the first parameter (alpha) indicates the transparency level.

Posted: Fri Apr 07, 2006 9:24 am
by 8127944
Thaks a lot1