摘要:[C#]以列為單位讀取MultiLine TextBox的內容
要如何以列為單位讀取MultiLine設為true的TextBox的內容呢?

using (StringReader sr = new StringReader(textbox1.text.Trim()))













7/13/2009 更新
感謝網友larrynung提供更簡單的方法,直接利用TextBox元件的Lines屬性即可得到以列為單位的字串陣列(string[])。

摘要:[C#]以列為單位讀取MultiLine TextBox的內容
要如何以列為單位讀取MultiLine設為true的TextBox的內容呢?
7/13/2009 更新
感謝網友larrynung提供更簡單的方法,直接利用TextBox元件的Lines屬性即可得到以列為單位的字串陣列(string[])。