Delen via


RectHelper.FromLocationAndSize(Point, Size) Method

Definition

Creates a new Rect value based on a Point that specifies the upper-left origin, and a Size that specifies the width and height. C# and Microsoft Visual Basic code should use the Rect(Point,Size) constructor instead.

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

Parameters

location
Point

The Point location of the origin (upper left).

size
Size

The Size that specifies width and height.

Returns

The created Rect value.

Applies to