[]
Draws a rounded border defined by four Pen objects and CornerRadius structure.
public void DrawRoundRect(RectangleF bounds, Pen left, Pen top, Pen right, Pen bottom, CornerRadius cornerRadius)
| Type | Name | Description |
|---|---|---|
| RectangleF | bounds | The RectangleF structure that represents the border bounds. |
| Pen | left | The left border. |
| Pen | top | The top border. |
| Pen | right | The right border. |
| Pen | bottom | The bottom border. |
| CornerRadius | cornerRadius | The border's corner radius. |
Draws a rounded rectangle using a specified line color, width and style.
If the value of lineStyle parameter is not Solid, the rounded rectangle is drawn with a Pen having LineCap set to Square instead of Flat.
public void DrawRoundRect(RectangleF bounds, float radius, Color lineColor, float lineWidth, DashStyle lineStyle = DashStyle.Solid)
| Type | Name | Description |
|---|---|---|
| RectangleF | bounds | A RectangleF structure that represents the rectangle to draw. |
| float | radius | The radius for the quarter ellipse that is drawn to replace every corner of the rectangle. |
| Color | lineColor | The color of lines used to draw the rounded rectangle. |
| float | lineWidth | The width of lines used to draw the rounded rectangle. |
| DashStyle | lineStyle | The style of lines used to draw the rounded rectangle (solid by default). |
Draws a rounded rectangle using a specified line color, width and style.
If the value of lineStyle parameter is not Solid, the rounded rectangle is drawn with a Pen having LineCap set to Square instead of Flat.
public void DrawRoundRect(RectangleF bounds, float radiusX, float radiusY, Color lineColor, float lineWidth, DashStyle lineStyle = DashStyle.Solid)
| Type | Name | Description |
|---|---|---|
| RectangleF | bounds | A RectangleF structure that represents the rectangle to draw. |
| float | radiusX | The x-radius for the quarter ellipse that is drawn to replace every corner of the rectangle. |
| float | radiusY | The y-radius for the quarter ellipse that is drawn to replace every corner of the rectangle. |
| Color | lineColor | The color of lines used to draw the rounded rectangle. |
| float | lineWidth | The width of lines used to draw the rounded rectangle. |
| DashStyle | lineStyle | The style of lines used to draw the rounded rectangle (solid by default). |
Draws a rounded rectangle using a specified line color, width and dash pattern.
If the dashPattern array contains two or more items, the rounded rectangle is drawn with a Pen having LineCap set to Square instead of Flat.
public void DrawRoundRect(RectangleF bounds, float radius, Color lineColor, float lineWidth, float[] dashPattern)
| Type | Name | Description |
|---|---|---|
| RectangleF | bounds | A RectangleF structure that represents the rectangle to draw. |
| float | radius | The radius for the quarter ellipse that is drawn to replace every corner of the rectangle. |
| Color | lineColor | The color of lines used to draw the rounded rectangle. |
| float | lineWidth | The width of lines used to draw the rounded rectangle. |
| float[] | dashPattern | The dash pattern lines used to draw the rounded rectangle. |
Draws a rounded rectangle using a specified line color, width and dash pattern.
If the dashPattern array contains two or more items, the rounded rectangle is drawn with a Pen having LineCap set to Square instead of Flat.
public void DrawRoundRect(RectangleF bounds, float radiusX, float radiusY, Color lineColor, float lineWidth, float[] dashPattern)
| Type | Name | Description |
|---|---|---|
| RectangleF | bounds | A RectangleF structure that represents the rectangle to draw. |
| float | radiusX | The x-radius for the quarter ellipse that is drawn to replace every corner of the rectangle. |
| float | radiusY | The y-radius for the quarter ellipse that is drawn to replace every corner of the rectangle. |
| Color | lineColor | The color of lines used to draw the rounded rectangle. |
| float | lineWidth | The width of lines used to draw the rounded rectangle. |
| float[] | dashPattern | The dash pattern lines used to draw the rounded rectangle. |
Draws a rounded rectangle using a specified pen.
public void DrawRoundRect(RectangleF bounds, float radius, Pen pen)
| Type | Name | Description |
|---|---|---|
| RectangleF | bounds | A RectangleF structure that represents the rectangle to draw. |
| float | radius | The radius for the quarter ellipse that is drawn to replace every corner of the rectangle. |
| Pen | pen | The pen used to draw the rounded rectangle. |
Draws a rounded rectangle using a specified pen.
public void DrawRoundRect(RectangleF bounds, float radiusX, float radiusY, Pen pen)
| Type | Name | Description |
|---|---|---|
| RectangleF | bounds | A RectangleF structure that represents the rectangle to draw. |
| float | radiusX | The x-radius for the quarter ellipse that is drawn to replace every corner of the rectangle. |
| float | radiusY | The y-radius for the quarter ellipse that is drawn to replace every corner of the rectangle. |
| Pen | pen | The pen used to draw the rounded rectangle. |