[]
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)
Public Sub DrawRoundRect(bounds As RectangleF, left As Pen, top As Pen, right As Pen, bottom As Pen, cornerRadius As 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)
Public Sub DrawRoundRect(bounds As RectangleF, radius As Single, lineColor As Color, lineWidth As Single, Optional lineStyle As DashStyle = 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)
Public Sub DrawRoundRect(bounds As RectangleF, radiusX As Single, radiusY As Single, lineColor As Color, lineWidth As Single, Optional lineStyle As DashStyle = 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)
Public Sub DrawRoundRect(bounds As RectangleF, radius As Single, lineColor As Color, lineWidth As Single, dashPattern As Single())
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)
Public Sub DrawRoundRect(bounds As RectangleF, radiusX As Single, radiusY As Single, lineColor As Color, lineWidth As Single, dashPattern As Single())
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)
Public Sub DrawRoundRect(bounds As RectangleF, radius As Single, pen As 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)
Public Sub DrawRoundRect(bounds As RectangleF, radiusX As Single, radiusY As Single, pen As 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. |