﻿ DrawArc Method (Graphics) | ComponentOne CalendarView for WinForms
ComponentOne CalendarView for WinForms
C1.Framework.Drawing.Gdi Namespace / Graphics Class / DrawArc Method
A Pen indicate the draw-style of arc
A System.Drawing.Rectangle indicates the bounding rectangle which center is the center of ellipse
A float specifies the start angle, in degrees.
A float specifies the sweep angle, in degrees, relative to the starting angle.

In This Topic
DrawArc Method (Graphics)
In This Topic
Draw the special arc by using the given pen
Syntax
```'Declaration

Public Sub DrawArc( _
ByVal pen As Pen, _
ByVal rectangle As Rectangle, _
ByVal startAngle As Single, _
ByVal sweepAngle As Single _
) ```
```public void DrawArc(
Pen pen,
Rectangle rectangle,
float startAngle,
float sweepAngle
)```

#### Parameters

pen
A Pen indicate the draw-style of arc
rectangle
A System.Drawing.Rectangle indicates the bounding rectangle which center is the center of ellipse
startAngle
A float specifies the start angle, in degrees.
sweepAngle
A float specifies the sweep angle, in degrees, relative to the starting angle.
Exceptions
ExceptionDescription
Defines an exception class to handle the system error.
Remarks
The arc is drawn by constructing an imaginary circle around the specified center point with the specified radius. The starting point of the arc is determined by measuring counterclockwise from the x-axis of the circle by the number of degrees in the start angle. The ending point is similarly located by measuring counterclockwise from the starting point by the number of degrees in the sweep angle. If the sweep angle is greater than 360 degrees,the arc is swept multiple times.