Table of Contents

Class RepArcMM

Namespace
Root.ReportNet.Pdf
Assembly
ReportNet.dll

Represents an arc in a PDF report, where the dimensions are in millimeters.

public class RepArcMM : RepArc
Inheritance
RepArcMM
Inherited Members

Examples

PenProp pen = new(1);
RepArcMM arc = new(pen, 50, 25, -120, 270);
page.AddMM(100, 100, arc);
page.AddMM(100 - 50, 100 - 25, new RepRectMM(pen, 2 * 50, 2 * 25));

Result: an arc segment with a radius of 50mm and 25mm, starting at 4 o'clock and ending at 7 o'clock counterclockwise (270°).
Result of RepArc example

Constructors

RepArcMM(PenProp, double, double, double)

Initializes a new instance of the RepArcMM class with the specified pen, radius in millimeters, start angle, and arc angle in degrees.

public RepArcMM(PenProp pen, double radiusMM, double startAngleDeg, double arcAngleDeg)

Parameters

pen PenProp

The pen properties for drawing the arc.

radiusMM double

The radius of the arc in millimeters.

startAngleDeg double

The start angle in degrees.

arcAngleDeg double

The arc angle in degrees counterclockwise.

Exceptions

ArgumentNullException

The pen is null.

RepArcMM(PenProp, double, double, double, double)

Initializes a new instance of the RepArcMM class with the specified pen, semi-axis lengths in millimeters, start angle, and arc angle in degrees.

public RepArcMM(PenProp pen, double semiAxisXmm, double semiAxisYmm, double startAngleDeg, double arcAngleDeg)

Parameters

pen PenProp

The pen properties for drawing the arc.

semiAxisXmm double

The length of the semi-major axis in millimeters.

semiAxisYmm double

The length of the semi-minor axis in millimeters.

startAngleDeg double

The start angle in degrees.

arcAngleDeg double

The arc angle in degrees counterclockwise.

Exceptions

ArgumentNullException

The pen is null.

See Also