Links

ResultRectangle

Similar to System.Drawing.Rectangle, but is a Reference Type (not a Value Type as the System.Drawing.Rectangle). Keep in mind that because of that any modification to a ResultRectangle will affect all references to it.
ResultRectangle offers almost all members of System.Drawing.Rectangle, see there for details. Additionally it exposes the following members:

Methods

Name
Description
RectFrom2Points
static method to construct a ResultRectangle formed by 2 corner Points. Order of the points does not matter. e.g:
var myRect = ResultRectangle.RectFrom2Points(point1, point2)

Properties

Name
Description
BottomLeft
The bottom left Point of the rectangle.
BottomRight
The bottom right Point of the rectangle.
Middle
The middle Point of the rectangle.
TopLeft
The top left Point of the rectangle (corresponds to Location)
TopRight
The top right Point of the rectangle.