Path

Base Type: Curve

Derived Types: Ring

A class for a connected, continuous sequence of segments or points.

Property

Type

Description

PointArray

Point[]

An array of Points that define a Path.

SegmentArray

Segment[]

An array of Segments that define the Path. Except for the first and last segments in the Path, each segment shares its FromPoint with the ToPoint of the previous Segment, and shares its ToPoint with the FromPoint of the following segment.

Remarks

An array of points or segments can be used to construct a Path. The segments of a Path do not need to be homogenous in type.

A Ring is a Path that starts and ends on the same point and defines an area.

Paths are the part types in Polylines.

Paths and Polylines

Examples

C#

PointN pnt1 = new PointN();

pnt1.X = 500000;

pnt1.Y = 500000;

PointN pnt2 = new PointN();

pnt2.X = 600000;

pnt2.Y = 500000;

PointN pnt3 = new PointN();

pnt3.X = 700000;

pnt3.Y = 500000;

 

PointN[] pntarray1 = new PointN[] { pnt1, pnt2, pnt3 };

Path path1 = new Path();

path1.PointArray = pntarray1;

11/8/2016