OrgSeries- Gradient direction for FromCenter

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
tangone
Newbie
Newbie
Posts: 23
Joined: Tue Jun 26, 2007 12:00 am

OrgSeries- Gradient direction for FromCenter

Post by tangone » Tue Jul 01, 2008 12:45 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jul 01, 2008 1:48 pm

Hi tangone,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

tangone
Newbie
Newbie
Posts: 23
Joined: Tue Jun 26, 2007 12:00 am

Post by tangone » Wed Jul 02, 2008 2:28 am

narcis wrote:Hi tangone,

In that case you need to use Steema.TeeChart.Drawing.PathGradientMode.FromCenter.
Thanks, however it seems not working for my case.

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jul 02, 2008 11:00 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply