Rect Construtores
Definição
Sobrecargas
| Rect(Point, Point) |
Inicializa um struct Rect que é exatamente grande o suficiente para conter os dois pontos especificados.Initializes a Rect struct that is exactly large enough to contain the two specified points. |
| Rect(Point, Size) |
Inicializa um struct Rect com base em uma origem e um tamanho.Initializes a Rect struct based on an origin and size. |
| Rect(Double, Double, Double, Double) |
Inicializa um struct Rect que tem a coordenada x, a coordenada y, a largura e a altura especificadas.Initializes a Rect struct that has the specified x-coordinate, y-coordinate, width, and height. |
Comentários
Essa estrutura representa a projeção .NET da estrutura Windows Runtime (WinRT) Rect .This struct represents the .NET projection of the Windows Runtime (WinRT) Rect struct. Para obter mais informações, consulte Rect na referência da API UWP.For more information, see Rect in the UWP API reference.
Rect(Point, Point)
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)
Parâmetros
- point1
- Point
O primeiro ponto que o novo retângulo deve conter.The first point that the new rectangle must contain.
- point2
- Point
O segundo ponto que o novo retângulo deve conter.The second point that the new rectangle must contain.
Aplica-se a
Rect(Point, Size)
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)
Parâmetros
Aplica-se a
Rect(Double, Double, Double, Double)
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)
Parâmetros
- x
- Double
A coordenada X do canto superior esquerdo do retângulo.The x-coordinate of the top-left corner of the rectangle.
- y
- Double
A coordenada y do canto superior esquerdo do retângulo.The y-coordinate of the top-left corner of the rectangle.
- width
- Double
A largura do retângulo.The width of the rectangle.
- height
- Double
A altura do retângulo.The height of the rectangle.
Exceções
A largura ou a altura são menores que 0.width or height are less than 0.