使用< Message ...>时是否可以打印换行符? [英] Is there a way to print a new-line when using <Message...>?

查看:62
本文介绍了使用< Message ...>时是否可以打印换行符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写<Message Text="Line1\nLine2\nLine3" />,但是\ n似乎不起作用.我应该用\ n替换什么?

I wanna write <Message Text="Line1\nLine2\nLine3" /> but \n seems not to be working. What should I replace \n with?

(我读过他们说要打印@和%的书,我们分别使用%40和%25,所以我猜应该是换行符的数字.)

(I read in the books they said that to print @ and % we use %40 and %25, so I guess the should be a number for the new-line).

推荐答案

CR = 0x0D或13

CR = 0x0D or 13

LF = 0x0A或10

LF = 0x0A or 10

这篇关于使用&lt; Message ...&gt;时是否可以打印换行符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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