MapWinGIS:AxMap ShapeLineStipple

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

ShapeLineStipple

Gets or sets the line stipple for the specified shape. Only works on shapefiles.
See also tkLineStipple


VB.NET Usage

Property set_ShapeLineStipple(LayerHandle As Integer, Shape As Integer, param0 as MapWinGIS.tkLineStipple
)
            Parameters

LayerHandle

Handle of the layer containing the shape for which the line stipple is to be set.
Shape Handle of the shape for which the line stipple is to be set.

param0

Line stipple for the shape in the shapefile.

Property get_ShapeLineStipple(LayerHandle As Integer, Shape As Integer) As MapWinGIS.tkLineStipple
            Parameters

LayerHandle

Handle of the layer containing the shape for which the line stipple is required.
Shape Handle of the shape for which the line stipple is required.

Return Value

Line stipple for the shape in the shapefile.

Sample Code

    Private Sub LineStipple()
        Dim hnd As Integer
        Dim t 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
        t = Map1.get_ShapeLineStipple(hnd, 0)
        'Set the point type for shape 0 in the layer to circle
        Map1.set_ShapeLineStipple(hnd, 0, MapWinGIS.tkPointType.ptCircle)
    End Sub
  

VB 6 Usage

Property ShapeLineStipple(LayerHandle As Long, Shape As Long) As tkLineStipple


            Parameters

LayerHandle Handle of the layer.
Shape Handle of the shape.
Return Value Line stipple for the layer

Sample Code

    Private Sub LineStipple()
        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.ShapeLineStipple(hnd, 0)
        'Set the point type for shape 0 in the layer to circle
        Map1.ShapeLineStipple(hnd, 0) = ptCircle
    End Sub

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

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