Share via


Rect Constructors

Definition

Overloads

Rect(Point, Size)
Rect(Double, Double, Double, Double)

Initializes a new instance of the Rect struct with the specified position and dimensions.

Rect(Point, Size)

Source:
Rect.cs
Source:
Rect.cs
Source:
Rect.cs
public:
 Rect(Microsoft::Maui::Graphics::Point loc, Microsoft::Maui::Graphics::Size sz);
public Rect(Microsoft.Maui.Graphics.Point loc, Microsoft.Maui.Graphics.Size sz);
new Microsoft.Maui.Graphics.Rect : Microsoft.Maui.Graphics.Point * Microsoft.Maui.Graphics.Size -> Microsoft.Maui.Graphics.Rect
Public Sub New (loc As Point, sz As Size)

Parameters

loc
Point
sz
Size

Applies to

Rect(Double, Double, Double, Double)

Source:
Rect.cs
Source:
Rect.cs
Source:
Rect.cs

Initializes a new instance of the Rect struct with the specified position and dimensions.

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

Parameters

x
Double

The x-coordinate of the rectangle's left edge.

y
Double

The y-coordinate of the rectangle's top edge.

width
Double

The width of the rectangle.

height
Double

The height of the rectangle.

Applies to