DrawEllipse(RectangleF,Color,Single,DashStyle) Method
In This Topic
Draws an ellipse using a specified line color, width and style.
If the value of lineStyle parameter is not DashStyle.Solid, the ellipse is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.
Syntax
'Declaration
Public Overloads Sub DrawEllipse( _
ByVal As System.Drawing.RectangleF, _
ByVal As System.Drawing.Color, _
ByVal As System.Single, _
Optional ByVal As DashStyle _
)
public void DrawEllipse(
System.Drawing.RectangleF ,
System.Drawing.Color ,
System.float ,
DashStyle
)
Parameters
- bounds
- A System.Drawing.RectangleF structure that specifies the ellipse to draw.
- lineColor
- The color of lines used to draw the ellipse.
- lineWidth
- The width of lines used to draw the ellipse.
- lineStyle
- The line style (solid by default).
See Also