Rect Constructor (Point, Vector)
.NET Framework 4.6 and 4.5
Initializes a new instance of the Rect structure that is exactly large enough to contain the specified point and the sum of the specified point and the specified vector.
WindowsBase (in WindowsBase.dll)
The first point the rectangle must contain.
The amount to offset the specified point. The resulting rectangle will be exactly large enough to contain both points.
The following example shows how to create a new Rect structure by using the Rect(Point, Vector) constructor.
Return to top
Available since 3.0