Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

RichTextBox, turn off the default wordwrap functionality

$
0
0

 

Hi,

 

I have a RichTextBox and when I set the HorizontalScrollBarVisibility to ScrollBarVisibility.Visible it always shows, but never works because my text gets word wrapped like the wordwrap function in notepad does.

 

Is there any way to turn this off?

 

The windows forms richtextbox seems to have a wordwrap property, but I am unable to find this property on the wpf variant.

 

current code I use:

 

RichTextBox

rtb = newRichTextBox();

rtb.VerticalScrollBarVisibility =

ScrollBarVisibility.Visible;

rtb.HorizontalScrollBarVisibility =

ScrollBarVisibility.Visible;

 

 

Thanks in advance,

 

Erik


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>