RectHelper.FromLocationAndSize(Point, Size) Methode

Definition

Erstellt einen neuen Rect-Wert basierend auf einem Punkt , der den linken oberen Ursprung angibt, und eine Größe , die die Breite und Höhe angibt. C#- und Microsoft Visual Basic-Code sollten stattdessen den Rect(Point,Size)- Konstruktor verwenden.

public:
 static Rect FromLocationAndSize(Point location, Size size);
 static Rect FromLocationAndSize(Point const& location, Size const& size);
public static Rect FromLocationAndSize(Point location, Size size);
function fromLocationAndSize(location, size)
Public Shared Function FromLocationAndSize (location As Point, size As Size) As Rect

Parameter

location
Point

Die Punktposition des Ursprungs (oben links).

size
Size

Die Größe , die Breite und Höhe angibt.

Gibt zurück

Der erstellte Rect-Wert .

Gilt für: