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

How to prevent wrapping of text in RichTextBoxAdv

Thread ID:





132469 Sep 4,2017 09:17 AM UTC Sep 5,2017 06:48 AM UTC WPF 3
Tags: RichTextBoxAdv
Asked On September 4, 2017 09:17 AM UTC


By default text in RichTextBoxAdv  get wrapped when there is not enough space when the control width is too small

To prevent this i want to disable word wrap so that by default scrollviewer will be in display

can any one clarify on this

Thank you

Santhosh Devi

Venkatesan Mani [Syncfusion]
Replied On September 4, 2017 10:05 AM UTC

Hi Santhosh Devi,

Thank you for contacting Syncfusion support.

The RichTextBoxAdv does not supports enable/disable the TextWrapping. The RichTextBoxAdv control is classic version. Whereas SfRichTextBoxAdv is a new control that works more similar to Microsoft Word, and all the new enhancements are done only in this control. So please prefer using SfRichTextBoxAdv control with all the new features. For more information, kindly refer our following UG link,

UG link: https://help.syncfusion.com/wpf/sfrichtextboxadv/getting-started   

Also, our SfRichTextBoxAdv control have the option to enable/disable the text wrapping in Continuous layout mode. Please refer the below API reference link for more information.

API reference link: 

We have also prepared a sample to demonstrate the TextWrapping in SfRichTextBoxAdv control and attached in the following link.

Sample link:

Venkatesan M. 

Replied On September 4, 2017 12:39 PM UTC

Hi Venkatesan Mani,

Thanks for your reply its really helpfull

I need one more support

In my application i have placed RichTextBox inside Dockable window and i gave Width and Height of RichTextBox to 'Auto'

when i am floating my window RichTextBox throws exception "Width and Height must be non-negative"

can you please help me to trace out the issue

Thank you

Santhosh Devi

Venkatesan Mani [Syncfusion]
Replied On September 5, 2017 06:48 AM UTC

Hi Santhosh Devi,

Thank you for your update.

We were not able to reproduce the reported issue “When floating the Dockable window containing SfRichTextBoxAdv with Auto size throws exception "Width and Height must be non-negative"”. Could you please share us the below required details? So that we can able to analyze in depth and provide you the appropriate solution at the earlier.

1. Essential studio version you are using
2. Simple sample or sample code or detailed procedure to reproduce the issue

Venkatesan M.


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

or the page will be automatically redirected to 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