System.Windows.Forms.ListView.ItemControl.CalculateBoxSelectRectangle C# (CSharp) Method

CalculateBoxSelectRectangle() private method

private CalculateBoxSelectRectangle ( Point pt ) : Rectangle
pt System.Drawing.Point
return System.Drawing.Rectangle
			private Rectangle CalculateBoxSelectRectangle (Point pt)
			{
				int left = Math.Min (box_select_start.X, pt.X);
				int right = Math.Max (box_select_start.X, pt.X);
				int top = Math.Min (box_select_start.Y, pt.Y);
				int bottom = Math.Max (box_select_start.Y, pt.Y);
				return Rectangle.FromLTRB (left, top, right, bottom);
			}