Table of Contents

Class RepArc

Namespace
Root.ReportNet.Pdf
Assembly
ReportNet.dll

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°).
Result of RepArc example

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 PenProp

The pen properties for drawing the arc.

radius double

The radius of the arc in points.

startAngleDeg double

The start angle in degrees.

arcAngleDeg double

The 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 PenProp

The pen properties for drawing the arc.

semiAxisX double

The length of the semi-major axis in points.

semiAxisY double

The length of the semi-minor axis in points.

startAngleDeg double

The start angle in degrees.

arcAngleDeg double

The arc angle in degrees counterclockwise.

Exceptions

ArgumentNullException

The pen is null.

See Also