MapWinGIS:Shape NumParts

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

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

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Shape_NumParts"

This page has been accessed 1,836 times. This page was last modified on 9 November 2005, at 16:57.