DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.GetPartSize | Methods | Properties
Return the vertex count within a single geometry part.
// C# public int GetPartSize( int _part );
' VisualBasic Public Function GetPartSize( ByVal _part As Integer ) As Integer
// Oxygene public function GetPartSize( _part : Integer ) : Integer;
| Name | Type | Description |
|---|---|---|
| _part | int Integer | Zero-based part index. |
| Type | Description |
|---|---|
| int Integer | Number of vertices in the specified part. Returns 0 for an invalid part index. |
PURPOSE: Reports the size of an individual part, such as a line segment, polygon ring, or one component of a multipart feature.
BEHAVIOR: Returns the number of stored vertices for the requested part. Invalid part indexes return 0 instead of raising an exception.
USAGE: Use this method together with GetNumParts when iterating vertices within each part of multipart vector geometry.
CONSTRAINTS: Part index must identify an existing part to return a nonzero value. Virtual method.