Page 1 of 1

Spin Gridband 90° ?

Posted: Wed Aug 02, 2006 11:44 am
by 9638326
Hello,

i want to hardcode implement the alignment change of the gridband like the option in the build-in editor but i just cant find any way to set the correct properties.

i want from this :
Image

NOT via :

Image
(the same thing but in codelines)

to :

Image


Any ideas ?

Regards,

Rob

Posted: Wed Aug 02, 2006 2:31 pm
by 9531990
Hello Rob,

this should work:

Code: Select all

Steema.TeeChart.Tools.GridBand gridBand1 = new_ Steema.TeeChart.Tools.GridBand();
        
        tChart1.Tools.Add(gridBand1);             
        gridBand1.Axis = tChart1.Axes.Bottom;

        gridBand1.Band1.Color = Color.AliceBlue;
        gridBand1.Band2.Color = Color.Bisque;