Hi,
Is there any way to remove wordwrap feature?
I have wpf application in which there is richtextbox control. I added some multiline text with tabs and spaces into this richtextbox.
If I increase the font all my text formatting is change and a vertical scroll bar appears.
I feel this is caused because of word wrap.
Regards,
Sharda.
Comments: ** Comment from web user: shardaiyer **
Is there any way to remove wordwrap feature?
I have wpf application in which there is richtextbox control. I added some multiline text with tabs and spaces into this richtextbox.
If I increase the font all my text formatting is change and a vertical scroll bar appears.
I feel this is caused because of word wrap.
Regards,
Sharda.
Comments: ** Comment from web user: shardaiyer **
Hi BoucherS,
I tried to read and write using TextRange and StreamReader/ StreamWriter. But still tab issue is exists.
The problem is there in Microsoft RichtextBox. Tabs inserted between the text has no issues. But if Tab is inserted at start of line, then the RichtextBox converts that tab to TextIndent which results in reformatting it seems.
I am really stuck with how to solve this issue. I tried various options like handling the PreviewKeyDown event and replacing tabs with 4 spaces. But this solution is also not working perfectly.
Regards,
Sharda