Rect 생성자 (Point, Vector)
.NET Framework 3.0
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)
어셈블리: WindowsBase(windowsbase.dll)
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; }