我有一些字符串数组中的数据,我想在文本框中显示,格式化为整齐的列。字符串值的长度是不同的,就像名字一样,所以简单地使用“\ t”不会产生所需的效果。如何格式化文本框中的文本布局
下面是一个简单的字符串,我从我的数组写入文本框:
MyArray[thecount] = thearrayLine.GetValue(0).ToString() + " "
+ thearrayLine.GetValue(1).ToString() + ", "
+ thearrayLine.GetValue(2).ToString() + " "
+ myRemainingvalues + " "
+ thearrayLine.GetValue(4).ToString();
你可能要考虑String.Join – Romoku 2013-02-27 00:46:29
我认为你最好在网格中显示数据,而不是强迫与文本框的问题。 – 2013-02-27 01:02:26