Page 1 of 1

Wish: Colorband drag like rectangle

Posted: Mon Nov 16, 2015 11:46 am
by 15675081
I would like to have the same dragging capabiilty like the rectangle also for the colorband

Re: Wish: Colorband drag like rectangle

Posted: Tue Nov 17, 2015 1:06 pm
by Christopher
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;
    }