MapWinGIS:AxMap ShapeLayerLineWidth

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

ShapeLayerLineWidth

Gets or sets the line width for the specified layer. Only works on shapefiles.
Suggested values for line width: 1 - 5


VB.NET Usage

Property set_ShapeLayerLineWidth(LayerHandle As Integer, param0 as Single
)
            Parameters

LayerHandle

Handle of the layer for which the line width is to be set.

param0

Line width for the shapefile.

Property get_ShapeLayerLineWidth(LayerHandle As Integer) As Single
            Parameters

LayerHandle

Handle of the layer for which the line width is required.

Return Value

Line width for the shapefile.

Sample Code

    Private Sub LineWidth()
        Dim hnd As Integer
        Dim width As Single
        'Get the handle for the layer at position 0
        hnd = Map1.get_LayerHandle(0)
        'Get the line width for layer 0 in Map1
        width = Map1.get_ShapeLayerLineWidth(hnd)
        'Set the line width for layer 0 in Map1
        Map1.set_ShapeLayerLineWidth(hnd, 3)
    End Sub
  

VB 6 Usage

Property ShapeLayerLineWidth(LayerHandle As Long) As Single


            Parameters

  LayerHandle   Handle of the layer.
  Return Value   Line width for the shapefile.

Sample Code

    Private Sub LineWidth()
        Dim hnd As Long
        Dim width As Single
        'Get the handle for the layer at position 0
        hnd = Map1.LayerHandle(0)
        'Get the line width for layer 0 in Map1
        width = Map1.ShapeLayerLineWidth(hnd)
        'Set the line width for layer 0 in Map1
        Map1.ShapeLayerLineWidth(hnd) = 3
    End Sub

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

This page has been accessed 1,473 times. This page was last modified on 9 November 2005, at 18:59.