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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





74733 Jun 26,2008 08:56 AM UTC Jul 2,2008 12:09 PM UTC WinForms 1
Tags: Diagram
Administrator [Syncfusion]
Asked On June 26, 2008 08:56 AM UTC

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 12:09 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon