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
Couldn't find alternates of constants in .Net version
-
- Newbie
- Posts: 14
- Joined: Wed Apr 06, 2011 12:00 am
Re: Couldn't find alternates of constants in .Net version
Hello Maverick123,
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:
I hope will helps.
Thanks,
Yes its ok.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?
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;
}
Thanks,
Best Regards,
Sandra Pazos / 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 |