关于Xdata数据的读取~请教
如何才能把Xdata数据读取到相应的textBoxcomboBox里System.Collections.IEnumerator iter = resBuf.GetEnumerator();
while (iter.MoveNext())
{
TypedValue tmpVal = (TypedValue)iter.Current;
ed.WriteMessage(tmpVal.Value.ToString() + "\n");//单独用这行代码,可以按顺序出来所有的数据,不过只在CAD状态栏里
this.textBox1.Text=tmpVal.Value.ToString() + "\n";//单独运行这个代码,只能出来最后一个数据
} 后面的覆盖了前面的,用listbox 或 combobox ivde 发表于 2015-4-18 18:46 static/image/common/back.gif
后面的覆盖了前面的,用listbox 或 combobox
谢谢指点,我去试试listbox this.textBox1.Text += tmpVal.Value.ToString() + "\n"; 问题已经解决了,谢谢两位的指导,我用的土办法,把数据先放进listBox 再通过listbox读取出来给变量。谢谢,在这里解决了不少问题!
页:
[1]