MapWinGIS:AxMap LayerLabelsScale

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

LayerLabelsScale

Gets or sets whether to scale the labels on the layer.
See also GetLayerStandardViewWidth and SetLayerStandardViewWidth


VB.NET Usage

Property set_LayerLabelsScale(LayerHandle As Integer, param0 As Boolean)

            Parameters

LayerHandle

The handle of the layer for which the scaling of labels is to be set.
param0 A boolean value representing whether or not to scale the labels on the specified layer.


Property get_LayerLabelsScale(LayerHandle As Integer) As Boolean

            Parameters

LayerHandle

The handle of the layer for which the scaling of labels is to be set.
ReturnValue A boolean value representing whether or not to scale the labels on the specified layer.

Sample Code

    Public Sub LayerLabelsScale()
        Dim hndl As Integer
        'Get the layer handle for the layer at position 0
        hndl = Map1.get_LayerHandle(0)
        'Check if the labels are scaled for the specified layer
        If Map1.get_LayerLabelsScale(hndl) Then
            'Set the labels on the layer not to be scaled
            Map1.set_LayerLabelsScale(hndl, False)
        Else
            'Set the labels on the layer to be scaled
            Map1.set_LayerLabelsScale(hndl, True)
        End If
    End Sub
  

VB 6 Usage

Property LayerLabelsScale(LayerHandle As Long) As Boolean

            Parameters

LayerHandle

The handle of the layer for which the scaling of labels is to be set.
ReturnValue A boolean value representing whether or not the labels on the specified layer are scaled.

Sample Code

    Public Sub LayerLabelsScale()
        Dim hndl As Long
        'Get the layer handle for the layer at position 0
        hndl = Map1.layerhandle(0)
        'Check if the labels are scaled for the specified layer
        If Map1.LayerLabelsScale(hndl) Then
            'Set the labels on the layer not to be scaled
            Map1.LayerLabelsScale(hndl) = False
        Else
            'Set the labels on the layer to be scaled
            Map1.LayerLabelsScale(hndl) = True
        End If
    End Sub

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

This page has been accessed 2,337 times. This page was last modified on 9 November 2005, at 18:51.