Edit

Share via


RectangleGeometry Constructors

Definition

Initializes a new instance of the RectangleGeometry class.

Overloads

RectangleGeometry()

Initializes a new instance of the RectangleGeometry class, and creates a rectangle with zero area.

RectangleGeometry(Rect)

Initializes a new instance of the RectangleGeometry class and specifies its dimensions.

RectangleGeometry(Rect, Double, Double)

Initializes a new instance of the RectangleGeometry class.

RectangleGeometry(Rect, Double, Double, Transform)

Initializes a new instance of the RectangleGeometry class.

RectangleGeometry()

Initializes a new instance of the RectangleGeometry class, and creates a rectangle with zero area.

public:
 RectangleGeometry();
public RectangleGeometry ();
Public Sub New ()

Applies to

RectangleGeometry(Rect)

Initializes a new instance of the RectangleGeometry class and specifies its dimensions.

public:
 RectangleGeometry(System::Windows::Rect rect);
public RectangleGeometry (System.Windows.Rect rect);
new System.Windows.Media.RectangleGeometry : System.Windows.Rect -> System.Windows.Media.RectangleGeometry
Public Sub New (rect As Rect)

Parameters

rect
Rect

A Rect structure with the rectangle's dimensions.

Applies to

RectangleGeometry(Rect, Double, Double)

Initializes a new instance of the RectangleGeometry class.

public:
 RectangleGeometry(System::Windows::Rect rect, double radiusX, double radiusY);
public RectangleGeometry (System.Windows.Rect rect, double radiusX, double radiusY);
new System.Windows.Media.RectangleGeometry : System.Windows.Rect * double * double -> System.Windows.Media.RectangleGeometry
Public Sub New (rect As Rect, radiusX As Double, radiusY As Double)

Parameters

rect
Rect

A Rect structure with the rectangle's dimensions.

radiusX
Double

The radius of the rounded corner where it connects with the upper and lower edges of the rectangle.

radiusY
Double

The radius of the rounded corner where it connects with the left and right edges of the rectangle.

Applies to

RectangleGeometry(Rect, Double, Double, Transform)

Initializes a new instance of the RectangleGeometry class.

public:
 RectangleGeometry(System::Windows::Rect rect, double radiusX, double radiusY, System::Windows::Media::Transform ^ transform);
public RectangleGeometry (System.Windows.Rect rect, double radiusX, double radiusY, System.Windows.Media.Transform transform);
new System.Windows.Media.RectangleGeometry : System.Windows.Rect * double * double * System.Windows.Media.Transform -> System.Windows.Media.RectangleGeometry
Public Sub New (rect As Rect, radiusX As Double, radiusY As Double, transform As Transform)

Parameters

rect
Rect

A Rect structure with the rectangle's dimensions.

radiusX
Double

The radius of the rounded corner where it connects with the upper and lower edges of the rectangle.

radiusY
Double

The radius of the rounded corner where it connects with the left and right edges of the rectangle.

transform
Transform

The transformation to apply to the geometry.

Applies to