visible Property of Rectangle tool

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

visible Property of Rectangle tool

Post by amol » Thu Nov 13, 2014 12:58 pm

Hi Steema Support,

Is there any property or method in rectangle tool to make it visible or active other than "ActiveProperty". Because we want to hide/Unhide Rectangle tool without using "Active" property.

Thanks in advance.

Thanks & Regards
PlanoResearch

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: visible Property of Rectangle tool

Post by Christopher » Thu Nov 13, 2014 2:53 pm

amol wrote: Is there any property or method in rectangle tool to make it visible or active other than "ActiveProperty". Because we want to hide/Unhide Rectangle tool without using "Active" property.
The Active property is designed to hide/unhide the rectangle tool - why can't you use it?
Best Regards,
Christopher Ireland / 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

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: visible Property of Rectangle tool

Post by amol » Fri Nov 14, 2014 12:16 pm

Hi Steema,

Thanks for your prompt reply. It is true to make rectangle tool hide/Unhide using Active property but we have some limitation on using this.
So please suggest any other way to hide/unhide rectangle tool.

Thanks&Regards
Planoresearch

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: visible Property of Rectangle tool

Post by Christopher » Mon Nov 17, 2014 10:50 am

Hello,

try:

Code: Select all

    RectangleTool tool1;

    private void InitializeChart()
    {
      tChart1.Series.Add(typeof(Bar)).FillSampleValues();
      tool1 = new RectangleTool(tChart1.Chart);
      tool1.Shape.Transparency = 0;

    }

    private void button1_Click(object sender, EventArgs e)
    {
      tChart1.Tools.Remove(tool1);
    }
Best Regards,
Christopher Ireland / 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

Post Reply