private void SetSpanIndicators()
{
SpanFound = false;
try
{
Span s = Control.Caret.CurrentSegment();
if (s == null || s.StartWord == null || s.StartWord.Row == null || s.EndWord == null || s.EndWord.Row == null)
return;
FirstSpanRow = s.StartWord.Row.Index;
LastSpanRow = s.EndWord.Row.Index;
SpanFound = true;
}
catch {}
}