We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon