Class ShapePath

Class ShapePath

Namespace: Aspose.Cells.Drawing
Assembly: Aspose.Cells.dll (25.2.0)

Represents a creation path consisting of a series of moves, lines and curves that when combined will form a geometric shape.

public class ShapePath

Inheritance

objectShapePath

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ShapePath()

Initializes a new instance of the Aspose.Cells.Drawing.ShapePath class.

public ShapePath()

Properties

PathSegementList

Gets Aspose.Cells.Drawing.ShapeSegmentPathCollection list

public ShapeSegmentPathCollection PathSegementList { get; }

Property Value

ShapeSegmentPathCollection

Methods

ArcTo(float, float, float, float)

Appends an elliptical arc to the current figure. The starting point is the end point of the current figure.

public void ArcTo(float wR, float hR, float stAng, float swAng)

Parameters

wR float

The half-width of the rectangular area of ​​the ellipse that draws the arc.

hR float

The half-height of the rectangular area of ​​the ellipse that draws the arc.

stAng float

The starting angle of the arc, measured in degrees clockwise from the x-axis.

swAng float

The angle between startAngle and the end of the arc.

Close()

Closes the current figure and starts a new figure. If the current figure contains a sequence of connected lines and curves, the method closes the loop by connecting a line from the endpoint to the starting point.

public void Close()

CubicBezierTo(float, float, float, float, float, float)

Appends a cubic Bézier curve to the current figure. The starting point is the end point of the current figure.

public void CubicBezierTo(float ctrX1, float ctrY1, float ctrX2, float ctrY2, float endX, float endY)

Parameters

ctrX1 float

The x-coordinate of the first control point for the curve.

ctrY1 float

The y-coordinate of the first control point for the curve.

ctrX2 float

The x-coordinate of the second control point for the curve.

ctrY2 float

The y-coordinate of the second control point for the curve.

endX float

The x-coordinate of the endpoint of the curve.

endY float

The y-coordinate of the endpoint of the curve.

LineTo(float, float)

Appends a line segment to the current figure. The starting point is the end point of the current figure.

public void LineTo(float x, float y)

Parameters

x float

The x-coordinate of the endpoint of the line segment.

y float

The y-coordinate of the endpoint of the line segment.

MoveTo(float, float)

Starts a new figure from the specified point without closing the current figure. All subsequent points added to the path are added to this new figure.

public void MoveTo(float x, float y)

Parameters

x float

The x-coordinate of the starting point of the figure.

y float

The y-coordinate of the starting point of the figure.