Hi,
I am creating a rectangle as follows:
_workRectangle = new Syncfusion.Windows.Forms.Diagram.Rectangle(x, y, (float)_width, (float)_height);
_workRectangle.EditStyle.AllowMove = false;
_workRectangle.EditStyle.AllowResize = false;
_workRectangle.EditStyle.AllowRotate = false;
_workRectangle.EditStyle.HidePinPoint = true;
_workRectangle.EditStyle.HideRotationHandle = true;
_workRectangle.LineStyle.LineWidth = 0.5f;
Now my questions are:
1. When I select the rectangle over diagram control, it is drawing the control points. I dont want these control points to be drawn. How can I do this?
2. the Width property for the diagramcontrol is not changing.
For e.g if the initial width of the diagram control is 350.\, even after executing the following statement, the Width of the diagram Control doesn't change:
this.diagram1.Width = 500;
Please Respond Soon,
Murali Krishna
GM
Gowri Manohari D
Syncfusion Team
June 1, 2009 01:03 PM UTC
Hi Murali,
Thanks for choosing Syncfusion Products.
1.For your first requirement please refer the below code.
_workRectangle.EditStyle.AllowSelect =false ;
2.For your second requirement Diagram.Width here works fine.We added the below code in our project.It will reflect at runtime.Intially diagram width is 350 after i changed to 700.
this.diagram1.Width = 700;
This code works fine here.Please let me know the code you used.
Thanks & Regards,
Gowri