Jaa


RectHelper.FromCoordinatesAndDimensions Method

Definition

Creates a new Rect value based on the element values of a Rect structure. C# and Microsoft Visual Basic code should use the Rect(Double,Double,Double,Double) constructor instead.

public:
 static Rect FromCoordinatesAndDimensions(float x, float y, float width, float height);
 static Rect FromCoordinatesAndDimensions(float const& x, float const& y, float const& width, float const& height);
public static Rect FromCoordinatesAndDimensions(float x, float y, float width, float height);
function fromCoordinatesAndDimensions(x, y, width, height)
Public Shared Function FromCoordinatesAndDimensions (x As Single, y As Single, width As Single, height As Single) As Rect

Parameters

x
Single

float

The pixel value to set for X.

y
Single

float

The pixel value to set for Y.

width
Single

float

The pixel value to set for Width.

height
Single

float

The pixel value to set for Height.

Returns

The created Rect.

Applies to