MapWinGIS:AxMap ShapeVisible

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

ShapeVisible

Gets or sets the visibility of the specified shape.


VB.NET Usage

Property set_ShapeVisible(LayerHandle As Integer, Shape As Integer, param0 As Boolean
)
            Parameters

LayerHandle

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

param0

Boolean value representing whether the shape is to be visible or not.

'Property get_ShapeVisible(LayerHandle As Integer, Shape As Integer) As Boolean'
            Parameters

LayerHandle

Handle of the layer containing the shape for which the visibility is required.
Shape Handle of the shape for which the visibility is required.

Return Value

Boolean value representing whether the the shape is visible or not.

Sample Code

    Private Sub ShapeVisible()
        Dim hnd As Integer
        'Get the handle for the layer at position 0
        hnd = Map1.get_LayerHandle(0)
        'See if shape 0 in the layer is visible
        If Map1.get_ShapeVisible(hnd, 0) Then
            'Set shape 0 in the layer as not visible
            Map1.set_ShapeVisible(hnd, 0, False)
        Else
            'Set shape 0 in the layer as visible
            Map1.set_ShapeVisible(hnd, 0, True)
        End If
    End Sub
  

VB 6 Usage

Property ShapeVisible(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 the shape is visible or not.

Sample Code

    Private Sub ShapeVisible()
        Dim hnd As Long
        'Get the handle for the layer at position 0
        hnd = Map1.LayerHandle(0)
        'See if shape 0 in the layer is visible
        If Map1.ShapeVisible(hnd, 0) Then
            'Set shape 0 in the layer as not visible
            Map1.ShapeVisible(hnd, 0) = False
        Else
            'Set shape 0 in the layer as visible
            Map1.ShapeVisible(hnd, 0) = True
        End If
    End Sub

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

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