RectangleGeometry Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
- 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
- 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.