PointHelper.FromCoordinates(Single, Single) 方法

定義

使用圖元中的 x 和 Y 座標值,建立新的 Point 值。 C# 和 Microsoft Visual Basic 程式碼應該改用 Point (Double、Double) 建構函式。

public:
 static Point FromCoordinates(float x, float y);
 static Point FromCoordinates(float const& x, float const& y);
public static Point FromCoordinates(float x, float y);
function fromCoordinates(x, y)
Public Shared Function FromCoordinates (x As Single, y As Single) As Point

參數

x
Single

float

要為 X設定的圖元值。

y
Single

float

要為 Y設定的圖元值。

傳回

建立 的 Point

適用於