System.Drawing.Graphics.DrawArc Method

Draws an arc representing a portion of an ellipse specified by a System.Drawing.RectangleF structure.

Syntax

public void DrawArc (Pen pen, RectangleF rect, float startAngle, float sweepAngle)

Parameters

pen
System.Drawing.Pen that determines the color, width, and style of the arc.
rect
System.Drawing.RectangleF structure that defines the boundaries of the ellipse.
startAngle
Angle in degrees measured clockwise from the x-axis to the starting point of the arc.
sweepAngle
Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc.

Remarks

This method draws an arc that is a portion of the perimeter of an ellipse. The ellipse is defined by the boundaries of a rectangle. The arc is the portion of the perimeter of the ellipse between the startAngle parameter and the startAngle + sweepAngle parameters.

Requirements

Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0