이 항목은 아직 평가되지 않았습니다.- 이 항목 평가

Rect 생성자 (Point, Vector)

Intializes a new instance of the Rect structure that is exactly large enough to contain the specified point and the sum of the specified point and the specified vector.

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

public Rect (
	Point point,
	Vector vector
)
public Rect (
	Point point, 
	Vector vector
)
public function Rect (
	point : Point, 
	vector : Vector
)
XAML에서 생성자를 사용할 수 없습니다.

매개 변수

point

The first point the rectangle must contain.

vector

The amount to offset the specified point. The resulting rectangle will be exactly large enough to contain both points.

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

private Rect createRectExample5()
{
    // This constructor Intializes a new instance of the Rect structure that is exactly 
    // large enough to contain the specified point and the sum of the specified point 
    // and the specified vector.   
    Rect myRectangle = new Rect(new Point(15, 30), new Vector(35, 40));

    // Returns a rectangle with a position of 15,30, a width of 35 and height of 40.
    return myRectangle;

}

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

.NET Framework

3.0에서 지원
이 정보가 도움이 되었습니까?
(1500자 남음)

커뮤니티 추가 항목

추가
© 2013 Microsoft. All rights reserved.