richtextbox中的换行格式控件 [英] newline format control in richtextbox

查看:377
本文介绍了richtextbox中的换行格式控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法添加换行符(/ n)来获取richtextbox控件以在连续的行上显示文本。我键入的文本被覆盖。我如何解决这个问题


我的例子


richTextBox-> Multiline = true

richTextBox-> Text = S" First line / n"

richTextBox-> Text = S" second line"


谢谢


DAS

I can''t seem to add a newline (/n) to get a richtextbox control to display text on successive lines. The text that I type is overwritten. How do I remedy this

My example

richTextBox->Multiline = true
richTextBox->Text = S"First line /n"
richTextBox->Text = S"Second line"

Thanks

DAS

推荐答案




尝试使用\\\\ n - 听起来像你只是回来了,而不是

a换行。


史蒂夫


" D管家" <一个******* @ discussions.microsoft.com>在消息中写道

新闻:A8 ********************************** @ microsof t.com ...
Hi,

Try using \r\n - sounds like you''re just getting a carriage return, and not
a newline.

Steve

"D Steward" <an*******@discussions.microsoft.com> wrote in message
news:A8**********************************@microsof t.com...
我似乎无法添加换行符(/ n)来获取richtextbox控件以在连续的行上显示
文本。我键入的文本被覆盖。我如何解决这个问题?
我的例子:

richTextBox-> Multiline = true;
richTextBox-> Text = S" First line / n" ;;
richTextBox-> Text = S" second line";

谢谢,

DAS
I can''t seem to add a newline (/n) to get a richtextbox control to display text on successive lines. The text that I type is overwritten. How do I
remedy this?
My example:

richTextBox->Multiline = true;
richTextBox->Text = S"First line /n";
richTextBox->Text = S"Second line";

Thanks,

DAS



我尝试过多种转义序列组合,但它们都不起作用


看来发生的事情是它无法识别转义序列并且只是覆盖了前一行


任何建议都将不胜感激


DAS
I have tried numerous combinations of escape sequences, and none of them work

It appears what happens is that it doesn''t recognize the escape sequence and just overwrites the previous line

Any suggestions would be appreciated

DAS


也使用+ =运算符。否则你只是覆盖

之前的字符串。


Austin


2004年1月30日星期五12:43:37 -0000,Steve McLellan

< sj*@fixerlabs.com.NOSPAM>写道:
Also use the += operator. Otherwise you''re just overwriting the
previous string.

Austin

On Fri, 30 Jan 2004 12:43:37 -0000, "Steve McLellan"
<sj*@fixerlabs.com.NOSPAM> wrote:


尝试使用\\\\ n - 听起来就像你刚回来一样,而不是
换行。

史蒂夫

D Steward <一个******* @ discussions.microsoft.com>在消息中写道
新闻:A8 ********************************** @ microso ft.com。 ..
Hi,

Try using \r\n - sounds like you''re just getting a carriage return, and not
a newline.

Steve

"D Steward" <an*******@discussions.microsoft.com> wrote in message
news:A8**********************************@microso ft.com...
我似乎无法添加换行符(/ n)来获取richtextbox控件以在连续的行上显示
I can''t seem to add a newline (/n) to get a richtextbox control to display


文本。我键入的文本被覆盖。我如何解决这个问题?


text on successive lines. The text that I type is overwritten. How do I
remedy this?


我的例子:

richTextBox-> Multiline = true;
richTextBox-> Text = S" First line / n";
richTextBox-> Text = S" Second line" ;;

谢谢,

DAS

My example:

richTextBox->Multiline = true;
richTextBox->Text = S"First line /n";
richTextBox->Text = S"Second line";

Thanks,

DAS






这篇关于richtextbox中的换行格式控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆