RectHelper.FromPoints(Point, Point) Metodo

Definizione

Crea un nuovo valore Rect in base a due punti. Il codice C# e Microsoft Visual Basic devono usare invece il costruttore 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

Parametri

point1
Point

Primo punto.

point2
Point

Secondo punto.

Restituisce

Oggetto Rect creato.

Si applica a