I am not getting OnColorLineToolDragLine event in Teechart .Net version.
This is present in Teechart ActiveX version.
Kindly help me to find out the alternative solution.
OnColorLineToolDragLine event Not available in Teechart .Net
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: OnColorLineToolDragLine event Not available in Teechart .Net
Hello Quant,
Here it is:
Here it is:
Code: Select all
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
InitializeChart();
}
private Steema.TeeChart.Tools.ColorLine colorLine1;
private void InitializeChart()
{
tChart1.Series.Add(new Steema.TeeChart.Styles.Line()).FillSampleValues();
colorLine1 = new Steema.TeeChart.Tools.ColorLine(tChart1.Chart);
colorLine1.Axis = tChart1.Axes.Bottom;
colorLine1.Value = 5;
colorLine1.DragLine += colorLine1_DragLine;
}
void colorLine1_DragLine(object sender, EventArgs e)
{
tChart1.Header.Text = colorLine1.Value.ToString();
}
}
Best Regards,
Narcís Calvet / 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 |
Re: OnColorLineToolDragLine event Not available in Teechart .Net
it worked thank you