User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.getpartsize_integer

Table of Contents

ITGIS_Shape.GetPartSize method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.GetPartSize | Methods | Properties

Return the vertex count within a single geometry part.

Available also on: Delphi | .NET | Java | Python.

Syntax

// C#
public int GetPartSize(
  int _part
);
' VisualBasic
Public Function GetPartSize(
  ByVal _part As Integer
) As Integer
// Oxygene
public
  function GetPartSize(
    _part : Integer
  ) : Integer;

Parameters

Name Type Description
_part int
Integer
Zero-based part index.

Result

Type Description
int
Integer
Number of vertices in the specified part. Returns 0 for an invalid part index.

Remarks

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.

2026/07/05 01:25

Page Tools