Wish: Colorband drag like rectangle

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MCS
Newbie
Newbie
Posts: 1
Joined: Thu Jul 16, 2015 12:00 am

Wish: Colorband drag like rectangle

Post by MCS » Mon Nov 16, 2015 11:46 am

I would like to have the same dragging capabiilty like the rectangle also for the colorband

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

Re: Wish: Colorband drag like rectangle

Post by Christopher » Tue Nov 17, 2015 1:06 pm

Hello,

ColorBand can be configured to enable the mouse-dragging of the two edge lines, e.g.

Code: Select all

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      Line line1 = new Line(tChart1.Chart);
      line1.FillSampleValues(100);

      ColorBand band1 = new ColorBand(tChart1.Chart);
      band1.Axis = tChart1.Axes.Bottom;
      band1.Start = 10;
      band1.End = 30;
      band1.ResizeEnd = true;
      band1.ResizeStart = true;
    }
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