line series width

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
LG
Newbie
Newbie
Posts: 30
Joined: Tue Apr 08, 2003 4:00 am

line series width

Post by LG » Thu May 24, 2007 8:16 am

Dear All,

I cannot find way how to make my line width larger. Could you please anyone advise (I am using the .NET version)


Thank

LG

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Thu May 24, 2007 9:11 am

Hi LG

You can change the width as below code:

Code: Select all

line1.LinePen.Width = 2;
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

LG
Newbie
Newbie
Posts: 30
Joined: Tue Apr 08, 2003 4:00 am

Post by LG » Thu May 24, 2007 9:26 am

Dear Edu,

Thanks. I am now accessing the series through its index and I cannot convert back

Code: Select all

Steema.TeeChart.Styles.Line
so that I cannot access the LinePen property at all. I am looping based ont Chart1.Series[intIndex].

Please advise.

Regards,
LG

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Thu May 24, 2007 9:58 am

In this case all you must do is type cast Series class to Line class (if it can be done). Something like this:

Code: Select all

if (tChart1.Series[index] is Steema.TeeChart.Styles.Line)
  (tChart1.Series[index] as Steema.TeeChart.Styles.Line).LinePen.Width = 2;
Marjan Slatinek,
http://www.steema.com

Post Reply