Couldn't find alternates of constants in .Net version

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Maverick123
Newbie
Newbie
Posts: 14
Joined: Wed Apr 06, 2011 12:00 am

Couldn't find alternates of constants in .Net version

Post by Maverick123 » Mon Aug 22, 2011 11:12 am

Hi,

I am switching from TeeChart Pro v7.0.0.7[ActiveX] to TeeChart .Net Pro v.4.0.2011.2082.

I have found alternates of some constants my self which are as follows.

TeeChart.EChartPenStyle.psSolid = Drawing2D.DashStyle.Solid
TeeChart.EChartPenStyle.psDash = Drawing2D.DashStyle.Dash
TeeChart.EChartPenStyle.psDot = Drawing2D.DashStyle.Dot
TeeChart.EChartPenStyle.psDashDot = Drawing2D.DashStyle.DashDot
TeeChart.EChartPenStyle.psDashDotDot = Drawing2D.DashStyle.DashDotDot

Is above implementation Ok?

Still I cannot found alternates of following constants used in TeeChart Pro v7.0.0.7[ActiveX]. i.e.

TeeChart.EChartPenStyle.psClear
TeeChart.EChartPenStyle.psInsideFrame

TeeChart.EConstants.clNone
TeeChart.EConstants.clTeeColor


Can you please guide me in this ragard?

Thanks and Regards,
Maverick

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Couldn't find alternates of constants in .Net version

Post by Sandra » Thu Aug 25, 2011 7:40 am

Hello Maverick123,
Is above implementation Ok?
Yes its ok.
Still I cannot found alternates of following constants used in TeeChart Pro v7.0.0.7[ActiveX]. i.e.

TeeChart.EChartPenStyle.psClear
TeeChart.EChartPenStyle.psInsideFrame

TeeChart.EConstants.clNone
TeeChart.EConstants.clTeeColor

Can you please guide me in this ragard?

The equivalence of Color are:

TeeChart.EConstants.clNone = Color.Transparent;
TeeChart.EConstants.clTeeColor= Color.Empty;

The equivalence of Style psClear is:

TeeChart.EChartPenStyle.psClear=...Pen.Visible= false;

But, about equivalence of TeeChart.EChartPenStyle.psInsideFrame, is a little different, so depends of the property PenType as explain in this link where there are a different type of you can set to the pen. To assign it to TeeChart you need do something as next code:

Code: Select all

Steema.TeeChart.Styles.Line line1;
        private void InitializeChart()
        {
             line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
             tChart1.Walls.Back.Transparent = true;
             line1.FillSampleValues();
             line1.LinePen.Width = 2;
             System.Drawing.Drawing2D.HatchBrush h = new System.Drawing.Drawing2D.HatchBrush(System.Drawing.Drawing2D.HatchStyle.DarkHorizontal, Color.Red);
             line1.LinePen.DrawingPen.Brush = h;
        }
I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / 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