Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. int i = textBox1.SelectionStart;
  2. var end = textBox1.Text.IndexOf(Environment.NewLine,i);
  3. var begin = textBox1.Text.XXX(Environment.NewLine,i);
  4. /* the line above needs a method to find the firs occurance
  5. of newline before the i postion */
  6. bool isEmpty = textBox1.Text.Substring(begin,end-begin).Trim() == "";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement