public bool RecognizeHorizontalLine (int startIndex, out int endIndex)
{
endIndex = startIndex;
var segs = GetDirectionSegments (startIndex);
if (segs.Length > 0 && segs [0].Direction.IsHorizontal ()) {
endIndex = segs [0].EndIndex;
return true;
}
return false;
}