ActivityDesignerPaint.GetRoundedRectanglePath(Rectangle, Int32) Método

Definición

Devuelve la ruta de acceso gráfica utilizada para dibujar el rectángulo redondeado especificado.

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

Parámetros

rectangle
Rectangle

Rectangle para el que se va a obtener la ruta de acceso de gráficos.

radius
Int32

Entero que define el radio que se va a usar para dibujar las esquinas redondeadas.

Devoluciones

que GraphicsPath dibuja la ruta de acceso redondeada del rectángulo especificado.

Excepciones

El valor de rectangle está establecido en IsEmpty.

O bien

radius es menor o igual que 0.

Comentarios

El DrawRoundedRectangle método usa GetRoundedRectanglePath para obtener la ruta de acceso que se va a dibujar.

Se aplica a