MapWinGIS:AxMap ShapeDrawFill

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

ShapeDrawFill

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


VB.NET Usage

Property set_ShapeDrawFill(LayerHandle As Integer, Shape As Integer, param0 as Boolean
)

            Parameters

LayerHandle

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

param0

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

Property get_ShapeDrawFill(LayerHandle As Integer, Shape As Integer) As Boolean
            Parameters

LayerHandle

Handle of the layer containing the shape which is tested to see if it is being drawn with a fill or not.
Shape Handle of the shape to test if it is being drawn with a fill or not.

Return Value

Gets whether the shape 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 shape 0 in the layer is being drawn with a fill
        If (Map1.get_ShapeDrawFill(hnd,0)) Then
            'Set shape 0 not to be drawn with a fill
            Map1.set_ShapeDrawFill(hnd, 0, False)
        Else
            'Set shape 0 to be drawn with fill
            Map1.set_ShapeDrawFill(hnd, 0, True)
        End If
    End Sub
  

VB 6 Usage

Property ShapeDrawFill(LayerHandle As Long, Shape As Long) As Boolean


            Parameters

  LayerHandle   Handle of the layer.
  Shape   Handle of the shape.
  Return Value   Boolean value representing whether shape 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 shape 0 in the layer is being drawn with a fill
        If (Map1.ShapeDrawFill(hnd,0)) Then
            'Set shape 0 not to be drawn with a fill
            Map1.ShapeDrawFill(hnd,0) = False
        Else
            'Set shape 0 to be drawn with fill
            Map1.ShapeDrawFill(hnd,0) = True
        End If
    End Sub

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

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