Rect 생성자

정의

오버로드

Rect(Point, Point)

지정된 두 지점을 정확히 포함할 수 있는 크기의 Rect 구조체를 초기화합니다.

Rect(Point, Size)

원점 및 크기를 기준으로 Rect 구조체를 초기화합니다.

Rect(Double, Double, Double, Double)

지정된 X 좌표, Y 좌표, 너비 및 높이를 갖는 Rect 구조체를 초기화합니다.

설명

이 구조체는 WinRT (Windows 런타임) 구조체의 .NET 프로젝션을 나타냅니다 Rect . 자세한 내용은 UWP API 참조의 Rect 를 참조 하세요.

Rect(Point, Point)

지정된 두 지점을 정확히 포함할 수 있는 크기의 Rect 구조체를 초기화합니다.

public:
 Rect(Windows::Foundation::Point point1, Windows::Foundation::Point point2);
public Rect (Windows.Foundation.Point point1, Windows.Foundation.Point point2);
new Windows.Foundation.Rect : Windows.Foundation.Point * Windows.Foundation.Point -> Windows.Foundation.Rect
Public Sub New (point1 As Point, point2 As Point)

매개 변수

point1
Point

새 사각형에 들어 있어야 하는 첫 번째 지점입니다.

point2
Point

새 사각형에 들어 있어야 하는 두 번째 지점입니다.

적용 대상

Rect(Point, Size)

원점 및 크기를 기준으로 Rect 구조체를 초기화합니다.

public:
 Rect(Windows::Foundation::Point location, Windows::Foundation::Size size);
public Rect (Windows.Foundation.Point location, Windows.Foundation.Size size);
new Windows.Foundation.Rect : Windows.Foundation.Point * Windows.Foundation.Size -> Windows.Foundation.Rect
Public Sub New (location As Point, size As Size)

매개 변수

location
Point

Rect의 원점입니다.

size
Size

Rect의 크기입니다.

적용 대상

Rect(Double, Double, Double, Double)

지정된 X 좌표, Y 좌표, 너비 및 높이를 갖는 Rect 구조체를 초기화합니다.

public:
 Rect(double x, double y, double width, double height);
public Rect (double x, double y, double width, double height);
new Windows.Foundation.Rect : double * double * double * double -> Windows.Foundation.Rect
Public Sub New (x As Double, y As Double, width As Double, height As Double)

매개 변수

x
Double

사각형의 왼쪽 위 모퉁이의 X 좌표입니다.

y
Double

사각형의 왼쪽 위 모퉁이의 y 좌표입니다.

width
Double

사각형의 너비입니다.

height
Double

사각형의 높이입니다.

예외

너비 또는 높이는 0보다 작습니다.

적용 대상