DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.PartLength | Methods | Properties
Calculates planar length of a single shape part.
// C# public double PartLength( int _part );
' VisualBasic Public Function PartLength( ByVal _part As Integer ) As Double
// Oxygene public function PartLength( _part : Integer ) : Double;
| Name | Type | Description |
|---|---|---|
| _part | int Integer | Zero-based part index. |
| Type | Description |
|---|---|
| double Double | Part length in map units. Returns zero if the part is invalid or if the base implementation is used. |
PURPOSE: Retrieve planar length for one part of a multipart geometry, such as an individual line component or polygon ring.
BEHAVIOR: Derived arc and polygon shapes sum segment lengths for the specified part. The base shape implementation returns 0.
CONSTRAINTS: The part index is validated by derived implementations. This is a planar calculation in layer map units.