Class
PathSegmentCollection

Collection of path segments for composing vector paths on document pages; use to build shapes before stroking or filling.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Collections

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

cs-api-definition
public sealed class PathSegmentCollection : List<PathSegment>, IList, ICollection, IEnumerable

Inheritance: objectList<PathSegment>PathSegmentCollection

Implements: ICollectionIEnumerableIList

Methods

AddArcSegment(Point, double, double)

Adds an arc segment that ends at the specified point with the given radii and returns it.

Declaration

cs-api-definition
public ArcSegment AddArcSegment(Point point, double radiusX, double radiusY)

Parameters

point

Point

The point.

radiusX

double

The radius X.

radiusY

double

The radius Y.

Returns

ArcSegment

AddBezierSegment(Point, Point, Point)

Adds a cubic Bézier segment with the specified control points and end point and returns it.

Declaration

cs-api-definition
public BezierSegment AddBezierSegment(Point point1, Point point2, Point point3)

Parameters

point1

Point

The first point.

point2

Point

The second point.

point3

Point

The third point.

Returns

BezierSegment

AddBezierSegment(float, float, float, float, float, float)

Adds a cubic Bézier segment defined by numeric coordinates and returns it.

Declaration

cs-api-definition
public BezierSegment AddBezierSegment(float x1, float y1, float x2, float y2, float x3, float y3)

Parameters

x1

float

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

y1

float

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

x2

float

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

y2

float

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

x3

float

The x-coordinate of the endpoint of the curve.

y3

float

The y-coordinate of the endpoint of the curve.

Returns

BezierSegment

AddLineSegment(Point)

Adds a line segment ending at the specified point and returns it.

Declaration

cs-api-definition
public LineSegment AddLineSegment(Point point)

Parameters

point

Point

The point.

Returns

LineSegment

AddQuadraticBezierSegment(Point, Point)

Adds a quadratic Bézier curve with the specified control and end points and returns it.

Declaration

cs-api-definition
public QuadraticBezierSegment AddQuadraticBezierSegment(Point point1, Point point2)

Parameters

point1

Point

The first point.

point2

Point

The second point.

Returns

QuadraticBezierSegment