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




The Path class represents a segment of a PolyLine.

Object Model


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 A Polyline:T:ESRI.ArcGIS.ADF.IMS.Geometry.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.

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.ADF.IMS.Geometry.Path

See Also

© 2010 All Rights Reserved.