MapWinGIS:AxMap ShapePointSize

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

ShapePointSize

Gets or sets the line point/vertex size for the specified shape. Only works on shapefiles.


VB.NET Usage

Property set_ShapePointSize(LayerHandle As Integer, Shape As Integer, param0 as Single
)
            Parameters

LayerHandle

Handle of the layer containing the shape for which the point/vertex size is to be set.
Shape Handle of the shape for which the point/vertex size is to be set.

param0

Point/vertex size for the shape in the shapefile.

'Property get_ShapePointSize(LayerHandle As Integer, Shape As Integer) As Single'
            Parameters

LayerHandle

Handle of the layer containing the shape for which the point/vertex size is required.
Shape Handle of the shape for which the point/vertex size is required.

Return Value

Point/vertex size for the shape in the shapefile.

Sample Code

    Private Sub PointSize()
        Dim hnd As Integer
        Dim size As Single
        'Get the handle for the layer at position 0
        hnd = Map1.get_LayerHandle(0)
        'Get the point/vertex size for image 0 in the layer
        size = Map1.get_ShapePointSize(hnd, 0)
        'Set the point/vertex size for image 0 in the layer to 3
        Map1.set_ShapePointSize(hnd, 0, 3)
    End Sub
  

VB 6 Usage

Property ShapePointSize(LayerHandle As Long, Shape As Long) As Single


            Parameters

LayerHandle Handle of the layer.
Shape Handle of the shape.
Return Value Point/vertex size for the shape.

Sample Code

    Private Sub PointSize()
        Dim hnd As Long
        Dim size As Single
        'Get the handle for the layer at position 0
        hnd = Map1.LayerHandle(0)
        'Get the point/vertex size for shape 0 in the layer
        size = Map1.ShapePointSize(hnd, 0)
        'Set the point/vertex size for shape 0 in the layer to 3
        Map1.ShapePointSize(hnd, 0) = 3
    End Sub

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

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