Share via


RectHelper.FromCoordinatesAndDimensions Metodo

Definizione

Crea un nuovo valore Rect in base ai valori di elemento di una struttura Rect . Il codice C# e Microsoft Visual Basic devono usare invece il costruttore Rect(Double,Double,Double,Double).

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

Parametri

x
Single

float

Valore pixel da impostare per X.

y
Single

float

Valore pixel da impostare per Y.

width
Single

float

Valore pixel da impostare per Width.

height
Single

float

Valore pixel da impostare per Height.

Restituisce

Oggetto Rect creato.

Si applica a