MapWinGIS:Shape ShapeType

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

ShapeType

Gets or sets the type of the shape. Note: The shape's type must match the type of the shapefile the shape is to be added to except for shapes of type SHP_NULLSHAPE.
See also ShpfileType


VB.NET Usage

Property ShapeType() As MapWinGIS.ShpfileType

            Parameters

ReturnValue

The shapefile type of the shape. This shapefile type must match the type of any shapefile the shape is added to.

Sample Code

    Private Sub ShapeType()
        Dim shape As New MapWinGIS.Shape()
        Dim shapetype As New MapWinGIS.ShpfileType()
        'Set the type of the shape
        shape.ShapeType = MapWinGIS.ShpfileType.SHP_POLYGON
        'Get the type of the shape
        shapetype = shape.ShapeType
    End Sub
  

VB 6 Usage
Property ShapeType() As ShpfileType
            Parameters

ReturnValue

The shapefile type of the shape. This shapefile type must match the type of any shapefile the shape is added to.

Sample Code

    Private Sub shapetype()
        Dim shape As New MapWinGIS.shape
        Dim shapetype As New MapWinGIS.ShpfileType
        'Set the type of the shape
        shape.shapetype = MapWinGIS.ShpfileType.SHP_POLYGON
        'Get the type of the shape
        shapetype = shape.shapetype
    End Sub

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

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