RectHelper.FromPoints(Point, Point) Method

Definition

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.

Applies to