public void KeepRowsTogether(int start, int end) { if (start < end) { while (start < end) { GetRow(start).MayNotBreak = true; start++; } } }