MapWinGIS:AxMap LayerKey

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

LayerKey

Gets or sets a string associated with a layer in the map. This string can be used to store any string data desired by the developer.


VB.NET Usage

Property set_LayerKey(LayerHandle As Integer, param0 As String)

            Parameters

LayerHandle

The handle for the layer for which the layer key is to be set.
param0 The layer key for the specified layer in string format.

Property get_LayerKey(LayerHandle As Integer) As String
            Parameters

LayerHandle

The handle for the layer for which the layer key is required.
ReturnValue The layer key for the specified layer in string format.

Sample Code

    Private Sub LayerKey()
        Dim hndl As Integer
        Dim lkey As String
        'Get the layer handle for the layer at position 0
        hndl = Map1.get_LayerHandle(0)
        'Get the layer key for the specified layer
        lkey = Map1.get_LayerKey(hndl)
        'Set the layer key for the specified layer
        Map1.set_LayerKey(hndl, "New Layer Key")
    End Sub
  

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

LayerHandle

The handle for the layer for which the layer key is required.
ReturnValue The layer key for the specified layer in string format.

Sample Code

    Private Sub LayerKey()
        Dim hndl As Long
        Dim lkey As String
        'Get the layer handle for the layer at position 0
        hndl = Map1.LayerHandle(0)
        'Get the layer key for the specified layer
        lkey = Map1.LayerKey(hndl)
        'Set the layer key for the specified layer
        Map1.LayerKey(hndl) = "New Layer Key"
    End Sub

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

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