MapWinGIS:AxMap ShapeLayerDrawPoint

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

ShapeLayerDrawPoint

Gets or sets whether the points/vertices for the shapefile in specified layer are drawn.


VB.NET Usage

Property set_ShapeLayerDrawPoint(LayerHandle As Integer, param0 as Boolean
)

            Parameters

LayerHandle

Handle of the layer for which the points are to be set.

param0

Sets whether the layer is drawn with points or not.

Property get_ShapeLayerDrawPoint(LayerHandle As Integer) As Boolean
            Parameters

LayerHandle

Handle of the layer to test if it is being drawn with a points or not.

Return Value

Gets whether the layer is being drawn with points or not.

Sample Code

    Private Sub DrawPoint()
        Dim hnd As Integer
        'Get the handle for the layer at position 0
        hnd = Map1.get_LayerHandle(0)
        'Check if the layer is being drawn with points
        If (Map1.get_ShapeLayerDrawPoint(hnd)) Then
            'Set the layer not to be drawn with points
            Map1.set_ShapeLayerDrawPoint(hnd, False)
        Else
            'Set the layer to be drawn with points
            Map1.set_ShapeLayerDrawPoint(hnd, True)
        End If
    End Sub
  

VB 6 Usage

Property ShapeLayerDrawPoint(LayerHandle As Long) As Boolean


            Parameters

  LayerHandle   Handle of the layer.
  Return Value   Boolean value representing whether layer is drawn with points.

Sample Code

    Private Sub DrawPoint()
        Dim hnd As Long
        'Get the handle for the layer at position 0
        hnd = Map1.LayerHandle(0)
        'Check if the layer is being drawn with points
        If (Map1.ShapeLayerDrawPoint(hnd)) Then
            'Set the layer not to be drawn with points
            Map1.ShapeLayerDrawPoint(hnd) = False
        Else
            'Set the layer to be drawn with points
            Map1.ShapeLayerDrawPoint(hnd) = True
        End If
    End Sub

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

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