[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.GcGraphics.DrawRoundRect

DrawRoundRect Method

DrawRoundRect(RectangleF, Pen, Pen, Pen, Pen, CornerRadius)

Draws a rounded border defined by four Pen objects and CornerRadius structure.

Declaration
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)
Parameters
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.

DrawRoundRect(RectangleF, float, Color, float, DashStyle)

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.

Declaration
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)
Parameters
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).

DrawRoundRect(RectangleF, float, float, Color, float, DashStyle)

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.

Declaration
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)
Parameters
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).

DrawRoundRect(RectangleF, float, Color, float, float[])

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.

Declaration
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())
Parameters
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.

DrawRoundRect(RectangleF, float, float, Color, float, float[])

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.

Declaration
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())
Parameters
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.

DrawRoundRect(RectangleF, float, Pen)

Draws a rounded rectangle using a specified pen.

Declaration
public void DrawRoundRect(RectangleF bounds, float radius, Pen pen)
Public Sub DrawRoundRect(bounds As RectangleF, radius As Single, pen As Pen)
Parameters
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.

DrawRoundRect(RectangleF, float, float, Pen)

Draws a rounded rectangle using a specified pen.

Declaration
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)
Parameters
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.