次の方法で共有


RectHelper.FromLocationAndSize(Point, Size) メソッド

定義

左上の原点を指定する Point と、幅と高さを指定する Size に基づいて、新しい Rect 値を作成します。 C# と Microsoft Visual Basic のコードでは、代わりに Rect(Point,Size) コンストラクターを使用する必要があります。

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

パラメーター

___location
Point

原点の ポイント 位置 (左上)。

size
Size

幅と高さを指定する Size

戻り値

作成された Rect 値。

適用対象