RectHelper.FromCoordinatesAndDimensions 方法

定義

根據 Rect 結構的元素值建立新的 Rect 值。 C# 和 Microsoft Visual Basic 程式碼應該改用 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

參數

x
Single

float

要為 X設定的圖元值。

y
Single

float

要為 Y設定的圖元值。

width
Single

float

要為 Width設定的圖元值。

height
Single

float

要為 Height設定的圖元值。

傳回

已建立 的 Rect

適用於