0
Line 1
Line 2
Line 3
Line 4
Line 5
<<Empty line>>
Line 7
Line 8
Line 9
Line 10
<<Empty line>>
<<Empty line>>
我有一個豐富的文本框來顯示10行,但是數據庫中的數據有超過10行,例如。RichTextbox行驗證與空行
我需要刪除大於10的空行並保留任何空行 行在10之間?
,使預期的結果應該是
Line 1
Line 2
Line 3
Line 4
Line 5
<<Empty line>>
Line 7
Line 8
Line 9
Line 10
String.IsNullOrEmpty(RichTextBoxr.Lines[Count]) => This if i use, it detects out the last line(in this example 12) and keeps the 11th empty line, which i don't want. Any help?
你知道索引是0的? – Paparazzi