Toolbar position

Is there a way to control the initial position of the toolbar. I have tried all of the properties that make sense, but the toolbar starts in the upper left corner. I want to be able to put it in the lower right corner.


1 Reply

AR Abdul Rahman A.H Syncfusion Team September 20, 2010 06:29 AM UTC

Hi Steve,

You can make use of the following code to position Chart toolbar.


//To set Toolbar postion.
Point point = new Point(200, 200);
Chart.SetDock(MyChart.ToolBar, ChartDock.Floating);

MyChart.ToolBar.Arrange(new Rect(point.X, point.Y, MyChart.Areas[0].Legend.DesiredSize.Width, MyChart.Areas[0].Legend.DesiredSize.Height));


Please refer the sample attached herewith.


Regards,
Abdul Rahman




ChartSample_c4061dbd.zip

Loader.
Up arrow icon