MapWinGIS:AxMap ShapeLineWidth

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

ShapeLineWidth

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


VB.NET Usage

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

LayerHandle

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

param0

Line width for the shape in the shapefile.

Property get_ShapeLineWidth(LayerHandle As Integer, Shape As Integer) As Single
            Parameters

LayerHandle

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

Return Value

Line width for the shape in 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 shape 0 in the layer
        width = Map1.get_ShapeLineWidth(hnd, 0)
        'Set the line width for shape 0 in the layer to 3
        Map1.set_ShapeLineWidth(hnd, 0, 3)
    End Sub
  

VB 6 Usage

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


            Parameters

LayerHandle Handle of the layer.
Shape Handle of the shape.
Return Value Line width for the shape in 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 shape 0 in the layer
        width = Map1.ShapeLineWidth(hnd, 0)
        'Set the line width for shape 0 in the layer to 3
        Map1.ShapeLineWidth(hnd, 0) = 3
    End Sub

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

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