MapWinGIS:AxMap GridFileName

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

GridFilename

Gets or sets the filename of the Grid object associated with an Image object loaded into the map.


VB.NET Usage

Property set_GridFilename(LayerHandle As Integer, param0 As String)

            Parameters

LayerHandle

The handle of the layer for which the grid filename is to be set.
param0 The grid filename to be associated with the specified layer.


Property get_GridFilename(LayerHandle As Integer) As String

            Parameters

LayerHandle

The handle of the layer for which the grid filename is required.
ReturnValue The grid filename associated with the specified layer.

Sample Code

    Private Sub GridFilename()
        Dim hndl As Integer
        Dim gfname As String
        'Get handle for layer at position 0 in map
        hndl = Map1.get_LayerHandle(0)
        'Get the gridfilename
        gfname = Map1.get_GridFileName(hndl)
        'Set the gridfilename
        Map1.set_GridFileName(hndl, "newGridFileName")
    End Sub
  

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

LayerHandle

The handle of the layer for which the grid filename is required.
ReturnValue The grid filename associated with the specified layer.

Sample Code

    Private Sub GridFilename()
        Dim hndl As Long
        Dim gfname As String
        'Get handle for layer at position 0 in map
        hndl = Map1.LayerHandle(0)
        'Get the gridfilename
        gfname = Map1.GridFilename(hndl)
        'Set the gridfilename
        Map1.GridFilename(hndl) = "newGridFileName"
    End Sub

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

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