Arc

Overview

Arc is a class in Aspose.PDF FOSS for .NET. Inherits from: Shape.

An arc shape (portion of an ellipse).

This class provides 4 methods for working with Arc objects in .NET programs. Available methods include: Arc, CheckBounds. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Alpha, Beta, CenterX, CenterY, GraphInfo, PosX, and 7 more.

Properties

NameTypeAccessDescription
CenterXdoubleRead/WriteGets or sets the center x.
CenterYdoubleRead/WriteGets or sets the center y.
RadiusXdoubleRead/WriteGets or sets the radius x.
RadiusYdoubleRead/WriteGets or sets the radius y.
StartAngledoubleRead/WriteStart angle in degrees (0 = 3 o’clock, counter-clockwise).
SweepAngledoubleRead/WriteSweep angle in degrees (positive = counter-clockwise).
PosXdoubleRead/WriteCentre X (alias of CenterX).
PosYdoubleRead/WriteCentre Y (alias of CenterY).
RadiusdoubleRead/WriteRadius (sets both RadiusX and RadiusY).
AlphadoubleRead/WriteStart angle in degrees (alias of StartAngle).
BetadoubleRead/WriteEnd angle in degrees; setting recomputes SweepAngle as value − Alpha.
GraphInfoAspose.Pdf.GraphInfoRead/WriteGets or sets the graph info.
TextAspose.Pdf.Text.TextFragment?Read/WriteOptional text label rendered with the shape.

Methods

SignatureDescription
Arc(centerX: double, centerY: double, radiusX: double, radiusY: double, startAngle: double, sweepAngle: double)Calls Arc on this Arc instance.
Arc(centerX: double, centerY: double, radius: double, alpha: double, beta: double)Constructor matching the public API: Arc(posX, posY, radius, alpha, beta) where alpha = start angle, beta = end angle.
Arc(posX: float, posY: float, radius: float, alpha: float, beta: float)Single-precision overload.
CheckBounds(containerWidth: double, containerHeight: double)Whether this arc lies entirely within a containerWidth×containerHeight box anchored at the origin.

See Also