MapWinGIS:AxMap LayerLabelsVisible

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

LayerLabelsVisible

Gets or sets label visibility for the specified layer.


VB.NET Usage

Property set_LayerLabelsVisible(LayerHandle As Integer, param0 As Boolean)

            Parameters

LayerHandle

The layer handle for the layer for which its label's visibility are to be set.
param0 A boolean value which determines whether the specified layer's labels are visible or not.


Property get_LayerLabelsVisible(LayerHandle As Integer) As Boolean

            Parameters

LayerHandle

The layer handle for the layer for which its label's visibility is being checked.
ReturnValue A boolean value which determines whether the specified layer's labels are visible or not.

Sample Code

    Private Sub LayerLabelsVisible()
        Dim hndl As Integer
        'Get the layer handle for the layer at position 0
        hndl = Map1.get_LayerHandle(0)
        'Check if the specified layer's labels are visible
        If Map1.get_LayerLabelsVisible(hndl) Then
            'Set the specified layer's labels to be visible
            Map1.set_LayerLabelsVisible(hndl, True)
        Else
            'Set the specified layer's labels to be hidden
            Map1.set_LayerLabelsVisible(hndl, False)
        End If
    End Sub
  

VB 6 Usage
Property LayerLabelsVisible(LayerHandle As Long) As Boolean
            Parameters

LayerHandle

The layer handle for the layer for which its label's visibility is required.
ReturnValue A boolean value which determines whether the specified layer's labels are visible or not.

Sample Code

    Private Sub LayerLabelsVisible()
        Dim hndl As Long
        'Get the layer handle for the layer at position 0
        hndl = Map1.LayerHandle(0)
        'Check if the specified layer's labels are visible
        If Map1.LayerLabelsVisible(hndl) Then
            'Set the specified layer's labels to be visible
            Map1.LayerLabelsVisible(hndl) = True
        Else
            'Set the specified layer's labels to be hidden
            Map1.LayerLabelsVisible(hndl) = False
        End If
    End Sub

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

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