public bool IsWholeWordAt (int offset, int length) { return (offset == 0 || IsWordSeparator (GetCharAt (offset - 1))) && (offset + length == TextLength || IsWordSeparator (GetCharAt (offset + length))); }