ActivityDesignerPaint.GetRoundedRectanglePath(Rectangle, Int32) 方法

定义

返回用于绘制指定圆角矩形的图形路径。

public:
 static System::Drawing::Drawing2D::GraphicsPath ^ GetRoundedRectanglePath(System::Drawing::Rectangle rectangle, int radius);
public static System.Drawing.Drawing2D.GraphicsPath GetRoundedRectanglePath(System.Drawing.Rectangle rectangle, int radius);
static member GetRoundedRectanglePath : System.Drawing.Rectangle * int -> System.Drawing.Drawing2D.GraphicsPath
Public Shared Function GetRoundedRectanglePath (rectangle As Rectangle, radius As Integer) As GraphicsPath

参数

rectangle
Rectangle

Rectangle要获取图形路径的图形路径。

radius
Int32

一个整数,用于定义用于绘制圆角的半径。

返回

绘制指定矩形的圆角路径的 A GraphicsPath

例外

rectangle 设置为 IsEmpty

-或-

radius 小于或等于 0。

注解

该方法 DrawRoundedRectangle 用于 GetRoundedRectanglePath 获取要绘制的路径。

适用于