이 설명서는 보관되지만 유지 되지 않습니다.

Rect 생성자 (Size)

Initializes a new instance of the Rect structure that is of the specified size and is located at (0,0).

네임스페이스: System.Windows
어셈블리: WindowsBase(windowsbase.dll)

public Rect (
	Size size
)
public Rect (
	Size size
)
public function Rect (
	size : Size
)
XAML에서 생성자를 사용할 수 없습니다.

매개 변수

size

The width and height of the rectangle.

The following example shows how to create a Rect structure using the Rect constructor.

private Rect createRectExample2()
{
    // This constructor initializes a new instance of the Rect structure that 
    // is of the specified size and is located at (0,0). 
    Rect myRectangle = new Rect(new Size(200, 50));

    // Returns a rectangle with a width of 200, a height of 50 and a position
    // of 0,0.
    return myRectangle;

}

Microsoft .NET Framework 3.0은 Windows Vista, Microsoft Windows XP SP2 및 Windows Server 2003 SP1에서 지원됩니다.

.NET Framework

3.0에서 지원
표시: