public static Rectangle FlipRectangle(Rectangle rect) { rect.Location = LayoutUtils.FlipPoint(rect.Location); rect.Size = LayoutUtils.FlipSize(rect.Size); return(rect); }