[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.GcGraphics.DrawEllipse

DrawEllipse Method

DrawEllipse(RectangleF, Color, float, DashStyle)

Draws an ellipse using a specified line color, width and style.

If the value of lineStyle parameter is not Solid, the ellipse is drawn with a Pen having LineCap set to Square instead of Flat.

Declaration
public void DrawEllipse(RectangleF bounds, Color lineColor, float lineWidth, DashStyle lineStyle = DashStyle.Solid)
Parameters
Type Name Description
RectangleF bounds

A RectangleF structure that specifies the ellipse to draw.

Color lineColor

The color of lines used to draw the ellipse.

float lineWidth

The width of lines used to draw the ellipse.

DashStyle lineStyle

The line style (solid by default).

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

Draws an ellipse using a specified line color, width and dash pattern.

If the dashPattern array contains two or more items, the ellipse is drawn with a Pen having LineCap set to Square instead of Flat.

Declaration
public void DrawEllipse(RectangleF bounds, Color lineColor, float lineWidth, float[] dashPattern)
Parameters
Type Name Description
RectangleF bounds

A RectangleF structure that specifies the ellipse to draw.

Color lineColor

The color of lines used to draw the ellipse.

float lineWidth

The width of lines used to draw the ellipse.

float[] dashPattern

The dash pattern of lines used to draw the ellipse.

DrawEllipse(RectangleF, Pen)

Draws an ellipse using a specified pen.

Declaration
public void DrawEllipse(RectangleF bounds, Pen pen)
Parameters
Type Name Description
RectangleF bounds

A RectangleF structure that specifies the ellipse to draw.

Pen pen

The pen used to draw the ellipse.