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.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應