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.
Unfortunately, activation email could not send to your email. Please try again.

Diagram Control Width

Thread ID:

Created:

Updated:

Platform:

Replies:

82083 Jun 1,2009 03:01 AM Jun 1,2009 09:03 AM Windows Forms 1
loading
Tags: Diagram
Murali Krishna
Asked On June 1, 2009 03:01 AM

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

Gowri Manohari D [Syncfusion]
Replied On June 1, 2009 09:03 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;