RectHelper.FromPoints(Point, Point) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new Rect value based on two points. C# and Microsoft Visual Basic code should use the Rect(Point,Point) constructor instead.
public:
static Rect FromPoints(Point point1, Point point2);
static Rect FromPoints(Point const& point1, Point const& point2);
public static Rect FromPoints(Point point1, Point point2);
function fromPoints(point1, point2)
Public Shared Function FromPoints (point1 As Point, point2 As Point) As Rect
Parameters
- point1
- Point
The first point.
- point2
- Point
The second point.
Returns
The created Rect.