Graphics.DrawRoundedRectangle Method
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.
DrawRoundedRectangle(Pen, Rectangle, Size) |
Draws the outline of the specified rounded rectangle. |
DrawRoundedRectangle(Pen, RectangleF, SizeF) |
Draws the outline of the specified rounded rectangle. |
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- Graphics.cs
Draws the outline of the specified rounded rectangle.
public:
void DrawRoundedRectangle(System::Drawing::Pen ^ pen, System::Drawing::Rectangle rect, System::Drawing::Size radius);
public void DrawRoundedRectangle(System.Drawing.Pen pen, System.Drawing.Rectangle rect, System.Drawing.Size radius);
member this.DrawRoundedRectangle : System.Drawing.Pen * System.Drawing.Rectangle * System.Drawing.Size -> unit
Public Sub DrawRoundedRectangle (pen As Pen, rect As Rectangle, radius As Size)
Parameters
- rect
- Rectangle
The bounds of the rounded rectangle.
- radius
- Size
The radius width and height used to round the corners of the rectangle.
Applies to
.NET 10 (package-provided) dan versi lain
Produk | Versi |
---|---|
.NET | 9 (package-provided), 10 (package-provided) |
Windows Desktop | 9, 10 |
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- Graphics.cs
Draws the outline of the specified rounded rectangle.
public:
void DrawRoundedRectangle(System::Drawing::Pen ^ pen, System::Drawing::RectangleF rect, System::Drawing::SizeF radius);
public void DrawRoundedRectangle(System.Drawing.Pen pen, System.Drawing.RectangleF rect, System.Drawing.SizeF radius);
member this.DrawRoundedRectangle : System.Drawing.Pen * System.Drawing.RectangleF * System.Drawing.SizeF -> unit
Public Sub DrawRoundedRectangle (pen As Pen, rect As RectangleF, radius As SizeF)
Parameters
- rect
- RectangleF
The bounds of the rounded rectangle.
- radius
- SizeF
The radius width and height used to round the corners of the rectangle.
Applies to
.NET 10 (package-provided) dan versi lain
Produk | Versi |
---|---|
.NET | 9 (package-provided), 10 (package-provided) |
Windows Desktop | 9, 10 |
.NET maklum balas
.NET ialah projek sumber terbuka. Pilih pautan untuk memberikan maklum balas: