文本属性中的换行符 [英] Newline in Text Property

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

问题描述




我希望能够在文本字符串中嵌入换行符。

是否有任何记录符号来执行此操作


TIA史蒂夫

Hi,

I would like to be able to embed a newline in a text string.
Is there any convienent notation to do this

TIA Steve

推荐答案

嗨RunningDog,


你的意思是一些东西(没有经过测试只在这里输入)

\\\

dim newstring as new system.text.stringbuilder(mystring.substring(0,10) )

newstring.append(vbcrlf)

newstring.append(mystring.substring(10))

mystring = newstring.toString

///


我希望这有帮助吗?


Cor
Hi RunningDog,

You mean something as (not tested only typed in here)
\\\
dim newstring as new system.text.stringbuilder(mystring.substring(0,10) )
newstring.append(vbcrlf)
newstring.append(mystring.substring(10))
mystring = newstring.toString
///

I hope this helps?

Cor


您好RunningDog:

" runningdog" < RU ******** @ reply.to.newsgroup>在消息中写道

news:40 *********************** @ lon-reader.news.telstra.net ...
Hi RunningDog:
"runningdog" <ru********@reply.to.newsgroup> wrote in message
news:40***********************@lon-reader.news.telstra.net...


我希望能够在文本字符串中嵌入换行符。
是否有任何记录符号来执行此操作
< TIA Steve
Hi,

I would like to be able to embed a newline in a text string.
Is there any convienent notation to do this

TIA Steve



尝试使用Environment.NewLine(对于真正的.NET语言独立

方法)或ControlChars.CrLf


Try either Environment.NewLine (for a truly .NET language independent
approach) or ControlChars.CrLf


比尔,
尝试使用Environment.NewLine(对于真正的.NET语言独立的方法)或ControlChars。 CrLf
Try either Environment.NewLine (for a truly .NET language independent
approach) or ControlChars.CrLf




你对句子.Net语言独立的意思是什么?当您使用VB.net

时,您使用的是.Net语言,这与

语言无关吗?


Cor



What do you mean with the sentence ".Net language independent". When you are
using VB.net you are using a .Net language, what has that to do with
language independent?

Cor


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

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