Draws an arc representing a segment of an ellipse.
Syntax

[C#]

void DrawArc(Pen pen, double x, double y, double width, double height, double startAngle, double sweepAngle);
void DrawArc(Pen pen, RectangleF rect, double startAngle, double sweepAngle);

[Visual Basic]

Sub DrawArc(pen As Pen, x As Double, y As Double, width As Double, height As Double, startAngle As Double, sweepAngle As Double)
Sub DrawArc(pen As Pen, rect As RectangleF, startAngle As Double, sweepAngle As Double)
Params
Name Description
pen The pen to use for drawing the arc.
x The left coordinate of the bounding rectangle.
y The top coordinate of the bounding rectangle.
width The width of the bounding rectangle.
height The height of the bounding rectangle.
startAngle Angle from the x-axis to the start of the arc section. Angles are measured in degrees going clockwise from the x axis.
sweepAngle Angle from the start of the arc section to the end of it. Angles are measured in degrees going clockwise.
rect The bounding rectangle for the ellipse.
Notes

None.

Example

None.