Class RepArcMM
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°).
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
PenPropThe pen properties for drawing the arc.
radiusMM
doubleThe radius of the arc in millimeters.
startAngleDeg
doubleThe start angle in degrees.
arcAngleDeg
doubleThe 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
PenPropThe pen properties for drawing the arc.
semiAxisXmm
doubleThe length of the semi-major axis in millimeters.
semiAxisYmm
doubleThe length of the semi-minor axis in millimeters.
startAngleDeg
doubleThe start angle in degrees.
arcAngleDeg
doubleThe arc angle in degrees counterclockwise.
Exceptions
- ArgumentNullException
The pen is null.