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.

How to prevent wrapping of text in RichTextBoxAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

132469 Sep 4,2017 05:17 AM Sep 5,2017 02:48 AM WPF 3
loading
Tags: RichTextBoxAdv
Devi
Asked On September 4, 2017 05:17 AM

Hi

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 06:05 AM

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: 
https://help.syncfusion.com/cr/cref_files/wpf/sfrichtextboxadv/Syncfusion.SfRichTextBoxAdv.WPF~Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv~TextWrapping.html

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

Sample link:
Sample.zip.

Regards,
Venkatesan M. 


Devi
Replied On September 4, 2017 08:39 AM

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 02:48 AM

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

Regards,
Venkatesan M.
 


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.

;