vb.net 2010中的空间 [英] space in vb.net 2010

查看:87
本文介绍了vb.net 2010中的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在文本文件中的单词之间以空格= 20的方式在文本框中打开

how to space=20 between words from text file to open in text box

推荐答案

您的问题不是很清楚.您是否要在单词之间添加空格?如果是这样,那么假设单词总数为20个字符,则可以在单词缩进时使用.PadLeft(20, " ").PadRight(20, " ").如果要使用单词然后再输入20个字符,则可以先组合单词,然后再组合20个空格的".

此处 [
Your question isn''t very clear. Are you trying to add spaces between words?If so, then you can use .PadLeft(20, " ") or .PadRight(20, " ") when concating a word, if there is supposed to be a total of 20 characters. If you want the word and then 20 characters, you could just concat the word and then concat " " which is twenty spaces.

Here[^] is the MSDN info on PadLeft if you want to research it more.


这篇关于vb.net 2010中的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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