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.


Thread ID:





74733 Jun 26,2008 04:56 AM Jul 2,2008 08:09 AM Windows Forms 1
Tags: Diagram
Administrator [Syncfusion]
Asked On June 26, 2008 04:56 AM

I want to create a textnode in the symbol pallet.
When editing the text inside this node in the diagram,i want that the node will be resized in a way that all text content will be appeared inside the node.

Setting "WrapText" to true did not help.

Please advice.

Thanks a lot,


J.Nagarajan [Syncfusion]
Replied On July 2, 2008 08:09 AM

Hi Shimon ,

If your intention is to auto resize the TextNode to display the complete text, then you have to create your own TextEditor and set the AutoResize attribute of BeginEdit method to true. Please refer to the following code snippet.

TextEditor m_editor;
m_editor = new TextEditor(this.diagram1.Controller);

//In BeginEdit
m_editor.BeginEdit(txtnode, true);

//In EndEdit

Please refer to the attached sample and the video clip for more details.

Sample: http://websamples.syncfusion.com/samples/Diagram.Windows/F74733/main.htm


In this sample when you click Edit->BeginEdit menuitem, the textnode will be in edit mode. After edit the text you can click on Edit->EndEdit menuitem to show the edited text.

Please let me know if this helps.



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.