OnColorLineToolDragLine event Not available in Teechart .Net

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

OnColorLineToolDragLine event Not available in Teechart .Net

Post by Quant » Thu Jan 22, 2015 5:01 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: OnColorLineToolDragLine event Not available in Teechart .Net

Post by Narcís » Thu Jan 22, 2015 10:55 am

Hello Quant,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

Re: OnColorLineToolDragLine event Not available in Teechart .Net

Post by Quant » Fri Jan 23, 2015 4:55 am

it worked thank you

Post Reply