Class RepArc
Represents an arc in a PDF report, where the dimensions are in points.
public class RepArc : RepArcBase
- Inheritance
-
RepArc
- Derived
- Inherited Members
Examples
PenProp pen = new(1);
RepArc arc = new(pen, 50, 25, -120, 270);
page.Add(100, 100, arc);
page.Add(100 - 50, 100 - 25, new RepRect(pen, 2 * 50, 2 * 25));
Result: an arc segment with a radius of 50 and 25 points, starting at 4 o'clock and ending at 7 o'clock counterclockwise (270°).
Constructors
RepArc(PenProp, double, double, double)
Initializes a new instance of the RepArc class with the specified pen, radius in points, start angle, and arc angle in degrees.
public RepArc(PenProp pen, double radius, double startAngleDeg, double arcAngleDeg)
Parameters
pen
PenPropThe pen properties for drawing the arc.
radius
doubleThe radius of the arc in points.
startAngleDeg
doubleThe start angle in degrees.
arcAngleDeg
doubleThe arc angle in degrees counterclockwise.
Exceptions
- ArgumentNullException
The pen is null.
RepArc(PenProp, double, double, double, double)
Initializes a new instance of the RepArc class with the specified pen, semi-axis lengths in points, start angle, and arc angle in degrees.
public RepArc(PenProp pen, double semiAxisX, double semiAxisY, double startAngleDeg, double arcAngleDeg)
Parameters
pen
PenPropThe pen properties for drawing the arc.
semiAxisX
doubleThe length of the semi-major axis in points.
semiAxisY
doubleThe length of the semi-minor axis in points.
startAngleDeg
doubleThe start angle in degrees.
arcAngleDeg
doubleThe arc angle in degrees counterclockwise.
Exceptions
- ArgumentNullException
The pen is null.