MapWinGIS:Shape NumParts
From MapWindow GIS
NumParts
Gets the number of parts contained in the shape.
A polygon shape may have several parts. An example of this would be a doughnut shape. The outermost perimeter would be one part, and the hole cut out of the center making up the innermost perimeter would be the second part. The outermost perimeter would be specified by a series of points arranged in clockwise order, meaning that this part will be filled. The innermost perimeter would be specified by a series of points arranged in counter-clockwise order, meaning that this part will not be filled.
VB.NET Usage
ReadOnly Property NumParts() As Integer
Parameters
|
ReturnValue | The number of parts contained in the shape. |
Sample Code
Private Sub ShapeNumParts()
Dim shape As New MapWinGIS.Shape()
Dim count As Integer
'Get the number of parts contained in the shape
count = shape.NumParts
End Sub
VB 6 Usage
ReadOnly Property NumParts() As Long
Parameters
|
ReturnValue | The number of parts contained in the shape. |
Sample Code
Private Sub ShapeNumParts()
Dim shape As New MapWinGIS.shape
Dim count As Long
'Get the number of parts contained in the shape
count = shape.NumParts
End Sub
















