MapWinGIS:AxMap ShapePointType

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

ShapePointType

Gets or sets the line point type for the specified shape. Only works on shapefiles.
See also tkPointType


VB.NET Usage

Property set_ShapePointType(LayerHandle As Integer, Shape As Integer, param0 As MapWinGIS.tkPointType
)
            Parameters

LayerHandle

Handle of the layer containing the shape for which the point type is to be set.
Shape Handle of the shape for which the point type is to be set.

param0

Point type for the shape in the shapefile.

'Property get_ShapePointType(LayerHandle As Integer, Shape As Integer) As MapWinGIS.tkPointType'
            Parameters

LayerHandle

Handle of the layer containing the shape for which the point type is required.
Shape Handle of the shape for which the point type is required.

Return Value

Point type for the shape in the shapefile.

Sample Code

    Private Sub PointType()
        Dim hnd As Integer
        Dim type As MapWinGIS.tkPointType
        'Get the handle for the layer at position 0
        hnd = Map1.get_LayerHandle(0)
        'Get the point type for shape 0 in the layer
        type = Map1.get_ShapePointType(hnd, 0)
        'Set the point type for shape 0 in the layer to circle
        Map1.set_ShapePointType(hnd, 0, MapWinGIS.tkPointType.ptCircle))
    End Sub
  

VB 6 Usage

Property ShapePointType(LayerHandle As Long, Shape As Long) As tkPointType


            Parameters

LayerHandle Handle of the layer.
Shape Handle of the shape.
Return Value Point type for the shape.

Sample Code

    Private Sub PointType()
        Dim hnd As Long
        Dim t As MapWinGIS.tkPointType
        'Get the handle for the layer at position 0
        hnd = Map1.LayerHandle(0)
        'Get the point type for shape 0 in the layer
        t = Map1.ShapePointType(hnd, 0)
        'Set the point type for shape 0 in the layer to circle
        Map1.ShapePointType(hnd, 0) = ptCircle
    End Sub

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

This page has been accessed 1,854 times. This page was last modified on 9 November 2005, at 19:09.