MapWinGIS:AxMap LayerName

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

LayerName

Gets or sets the name of the specified layer.


VB.NET Usage

Property set_LayerName(LayerHandle As Integer, param0 As String)

            Parameters

LayerHandle

The handle of the layer for which the name is to be set.
param0 The layer name for the specified layer.

Property get_LayerName(LayerHandle As Integer) As String
            Parameters

LayerHandle

The handle of the layer for which the name is required.
ReturnValue The layer name for the specified layer.

Sample Code

    Private Sub LayerName()
        Dim hndl As Integer
        Dim lname As String
        'Get the layer handle for the layer at position 0
        hndl = Map1.get_LayerHandle(0)
        'Get the layer name for the specified layer
        lname = Map1.get_LayerName(hndl)
        'Set the layer name for the specified layer
        Map1.set_LayerName(hndl, "New Layer Name")
    End Sub
  

VB 6 Usage
Property LayerName(LayerHandle As Long) As String
            Parameters

LayerHandle

The handle of the layer for which the name is required.
ReturnValue The layer name for the specified layer.

Sample Code

    Private Sub LayerName()
        Dim hndl As Long
        Dim lname As String
        'Get the layer handle for the layer at position 0
        hndl = Map1.LayerHandle(0)
        'Get the layer name for the specified layer
        lname = Map1.LayerName(hndl)
        'Set the layer name for the specified layer
        Map1.LayerName(hndl) = "New Layer Name"
    End Sub

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

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