Page 1 of 1

Couldn't find alternates of constants in .Net version

Posted: Mon Aug 22, 2011 11:12 am
by 15659004
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

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

Posted: Thu Aug 25, 2011 7:40 am
by 10050769
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,