/// <summary> /// Gets whether or not the given <see cref="Rect"/> intersects with any previous selection. /// </summary> /// <param name="Bounds"></param> /// <returns></returns> bool?IntersectedWith(Rect Bounds) { var u = 0; var v = false; Selections.TryForEach <Rect>(y => { if (Bounds.IntersectsWith(y)) { v = u % 2 == 0; u++; } }); return(u == 0 ? null : (bool?)v); }