ESRI.ArcGIS.ADF.IMS
Path Class
Members  Example  See Also  Send Feedback
ESRI.ArcGIS.ADF.IMS.Geometry Namespace : Path Class




The Path class represents a segment of a PolyLine.

Object Model

Path Class

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class Path 
Visual Basic (Usage)Copy Code
Dim instance As Path
C# 
[SerializableAttribute()]
public class Path 

Example

For another example, see Polyline . The following example creates a Path using a coordinate string, and adds the path to a Polyline.
C#Copy Code
// Create a new polyline
ESRI.ArcGIS.ADF.IMS.Geometry.Polyline line =
    new ESRI.ArcGIS.ADF.IMS.Geometry.Polyline();
 
// Define the coordinate string for the path
string coords = "11.0 18.2;17.3 22.5";
char xySeparator = ' ';
char pointSeparator = ';';
 
// Create a path and add it to the line
ESRI.ArcGIS.ADF.IMS.Geometry.Path path;
path = new ESRI.ArcGIS.ADF.IMS.Geometry.Path(coords, 
    pointSeparator, xySeparator);
line.Paths.Add(path);
Visual BasicCopy Code
' Create a new polyline
Dim line As New ESRI.ArcGIS.ADF.IMS.Geometry.Polyline()
 
' Define the coordinate string for the path
Dim coords As String = "11.0 18.2;17.3 22.5"
Dim xySeparator As Char = ' 'c
Dim pointSeparator As Char = ';'c
 
' Create a path and add it to the line
Dim path As New ESRI.ArcGIS.ADF.IMS.Geometry.Path( _
    coords, pointSeparator, xySeparator)
line.Paths.Add(path)

Remarks

A Path is a single segment of a Polyline feature. A Path has two or more Points that define its geometry (shape).

A Path is displayed on a map or used in a query by adding it to a Polyline. A Polyline may have multiple Path segments. For example, a road may be represented by a series of linear segments (paths), each path being a highway segment between intersections with other roads.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.