MapWinGIS:AxMap ShapeLayerDrawFill

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

ShapeLayerDrawFill

Gets or sets whether the specified layer is drawn with a fill. Only works on polygon shapefiles.


VB.NET Usage

Property set_ShapeLayerDrawFill(LayerHandle As Integer, param0 as Boolean
)

            Parameters

LayerHandle

Handle of the layer for which the fill is to be set.

param0

Sets whether the layer is drawn with a fill or not.

Property get_ShapeLayerDrawFill(LayerHandle As Integer) As Boolean
            Parameters

LayerHandle

Handle of the layer to test if it is being drawn with a fill or not.

Return Value

Gets whether the layer is being drawn with a fill or not.

Sample Code

    Private Sub DrawFill()
        Dim hnd As Integer
        'Get the handle for the layer at position 0
        hnd = Map1.get_LayerHandle(0)
        'Check if the layer is being drawn with a fill
        If (Map1.get_ShapeLayerDrawFill(hnd)) Then
            'Set the layer not to be drawn with a fill
            Map1.set_ShapeLayerDrawFill(hnd, False)
        Else
            'Set the layer to be drawn with fill
            Map1.set_ShapeLayerDrawFill(hnd, True)
        End If
    End Sub
  

VB 6 Usage

Property ShapeLayerDrawFill(LayerHandle As Long) As Boolean


            Parameters

  LayerHandle   Handle of the layer.
  Return Value   Boolean value representing whether layer is drawn with a fill.

Sample Code

    Private Sub DrawFill()
        Dim hnd As Long
        'Get the handle for the layer at position 0
        hnd = Map1.LayerHandle(0)
        'Check if the layer is being drawn with a fill
        If (Map1.ShapeLayerDrawFill(hnd)) Then
            'Set the layer not to be drawn with a fill
            Map1.ShapeLayerDrawFill(hnd) = False
        Else
            'Set the layer to be drawn with fill
            Map1.ShapeLayerDrawFill(hnd) = True
        End If
    End Sub

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

This page has been accessed 1,376 times. This page was last modified on 9 November 2005, at 19:01.