"SelEnd" doesn't look like a correct way. Definitely not guaranteed.
Text = "" should be fine. Though I do not know how that works if space trimming is enabled. Maybe there could be uncommitted trailing spaces.
Lines.Count can be 1, once you edited it, and undone all edits, or otherwise removed all text.