插入制表符为文本使用C# [英] Inserting a tab character into text using C#

查看:567
本文介绍了插入制表符为文本使用C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要建一个应用程序,我应该抓住几个值,并与他们建立一个文本:名称年龄

I'm building an application where I should capture several values and build a text with them: Name, Age, etc.

输出将是一个纯文本到文本框

The output will be a plain text into a TextBox.

我试图使这些信息显示在那种,所以我想将它们与设置页以使其更清晰。

I am trying to make those information appear in kind of columns, therefore I am trying to separate them with tab to make it clearer.

例如,代替

Ann 26
Sarah 29
Paul 45

我想它显示为:

I would like it to show as:

安的标签的26莎拉的标签的29保罗的标签的45

Ann tab 26 Sarah tab 29 Paul tab 45

如何插入任何提示标签到我的文字?

推荐答案

尝试使用 \ t 字符在字符串

这篇关于插入制表符为文本使用C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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