MapWinGIS:AxMap LayerLabelsOffset

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

LayerLabelsOffset

Gets and sets the offset for the labels on the layer. The offset is the distance in pixels from the label point to the text.


VB.NET Usage

Property set_LayerLabelsOffset(LayerHandle As Integer, param0 As Integer)

            Parameters

LayerHandle

The handle of the layer for which the offset is to be set.
param0 The offset for the labels on the specified layer.

Property get_LayerLabelsOffset(LayerHandle As Integer) As Integer
            Parameters

LayerHandle

The handle of the layer for which the offset is to be set.
ReturnValue The offset for the labels on the specified layer.

Sample Code

    Public Sub LayerLabelsOffset()
        Dim hndl As Integer
        Dim offset As Integer
        'Get the layer handle for the layer at position 0
        hndl = Map1.get_LayerHandle(0)
        'Get the label offset for the layer
        offset = Map1.get_LayerLabelsOffset(hndl)
        'Set the label offset for the layer
        Map1.set_LayerLabelsOffset(hndl, offset)
    End Sub
  

VB 6 Usage
Property LayerLabelsOffset(LayerHandle As Long) As Long
            Parameters

LayerHandle

The handle of the layer for which the offset is to be set.
ReturnValue The offset for the labels on the specified layer.

Sample Code

    Public Sub LayerLabelsOffset()
        Dim hndl As Long
        Dim offset As Long
        'Get the layer handle for the layer at position 0
        hndl = Map1.layerhandle(0)
        'Get the label offset for the layer
        offset = Map1.LayerLabelsOffset(hndl)
        'Set the label offset for the layer
        Map1.LayerLabelsOffset(hndl) = offset
    End Sub

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

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