May I know how to set gradient direction for OrgSeries as FromCenter programmatically?
So far, I managed to set gradient direction as:
1) Drawing.Drawing2D.LinearGradientMode.BackwardDiagonal
2) Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal
3) Drawing.Drawing2D.LinearGradientMode.Horizontal
4) Drawing.Drawing2D.LinearGradientMode.Vertical
However, there is not option for FromCenter.
Thanks.
OrgSeries- Gradient direction for FromCenter
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi tangone,
In that case you need to use Steema.TeeChart.Drawing.PathGradientMode.FromCenter.
In that case you need to use Steema.TeeChart.Drawing.PathGradientMode.FromCenter.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Thanks, however it seems not working for my case.narcis wrote:Hi tangone,
In that case you need to use Steema.TeeChart.Drawing.PathGradientMode.FromCenter.
I tried:
Dim sGradient As Steema.TeeChart.Drawing.Gradient = New Steema.TeeChart.Drawing.Gradient()
sGradient.Direction = Steema.TeeChart.Drawing.PathGradientMode.FromCenter
OrgSeries get rendered as Horizontal gradient.
I also tried:
Dim sGradient As Steema.TeeChart.Drawing.Gradient = New Steema.TeeChart.Drawing.Gradient()
sGradient.Style.Direction = Steema.TeeChart.Drawing.PathGradientMode.FromCenter
Same as previously, OrgSeries also get rendered as Horizontal gradient.
Anyway suggestion?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi tangone,
Yes, you should do it as shown in the What's New?\Welcome !\New in Canvas\Custom Gradients example in the features demo, available at TeeChart's program group.
Yes, you should do it as shown in the What's New?\Welcome !\New in Canvas\Custom Gradients example in the features demo, available at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |