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

Prevent text from scaling when a node is resized

Thread ID:





52464 Nov 29,2006 09:03 AM UTC Nov 30,2006 06:00 AM UTC WinForms 2
Tags: Diagram
Administrator [Syncfusion]
Asked On November 29, 2006 09:03 AM UTC

Hi, I'm trying to create my own Post-It style Symbol similar to the one in the PostitComment example, but instead of stretching the text out when the user resizes the symbol (the behavior in the examples), I want it to keep the text the same size and have it wrap around the new vertical boundaries of the symbol. How can I do this?

J.Nagarajan [Syncfusion]
Replied On November 29, 2006 11:58 PM UTC

Hi Eric,

If your intention is to keep the label's text the same size and have to wrap around the new vertical boundaries of the symbol then please set the " SymbolLabel.AdjustToContainerBounds" property to true. Please refer to the following code snippet

protected override void OnBoundsChanged(BoundsEventArgs evtArgs)
//Specify if the label size will be adjusted when the symbol width changed.
lbl.AdjustToContainerBounds = true;

Please refer to the attached sample that demonstrates this completely. Please refer to it and let me know if you have any questions.

Thanks for using Syncfusion product.



Administrator [Syncfusion]
Replied On November 30, 2006 06:00 AM UTC

That's just what I was after, thanks!


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