public Word GetWordFromPos(TextPoint p)
{
Row xtr = this[p.Y];
int CharNo = 0;
Word CorrectWord = null;
foreach (Word w in xtr)
{
if (CorrectWord != null)
{
if (w.Text == "")
return w;
return CorrectWord;
}
if (w.Text.Length + CharNo > p.X || w == xtr[xtr.Count - 1])
{
//return w;
CorrectWord = w;
}
else
{
CharNo += w.Text.Length;
}
}
return CorrectWord;
}