Compartilhar via


ActivityDesignerPaint.GetRoundedRectanglePath(Rectangle, Int32) Método

Definição

Retorna o caminho de gráficos usado para desenhar o retângulo arredondado 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

O Rectangle para o qual obter o caminho de gráficos.

radius
Int32

Um inteiro que define o raio a ser usado para desenhar os cantos arredondados.

Retornos

GraphicsPath

Um GraphicsPath que desenha o caminho arredondado do retângulo especificado.

Exceções

rectangle é definido como IsEmpty.

- ou - radius é menor ou igual a 0.

Comentários

O DrawRoundedRectangle método usa GetRoundedRectanglePath para obter o caminho a ser desenhado.

Aplica-se a