RectHelper.FromPoints(Point, Point) 方法

定义

基于两个点创建新的 Rect 值。 C# 和 Microsoft Visual Basic 代码应改用 Rect (Point,Point) 构造函数。

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

参数

point1
Point

第一个点。

point2
Point

第二个点。

返回

创建的 Rect

适用于