MapWinGIS:Shapefile StopEditingShapes

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

StopEditingShapes

Sets the shapefile to prevent shapes from being edited. Note: It is recommended that the attribute table is also set to prevent editing when shapes are set to prevent editing.
See also StartEditingShapes


VB.NET Usage

Function StopEditingShapes(Optional ApplyChanges As Boolean, Optional StopEditTable As Boolean, Optional cBack As MapWinGIS.ICallback) As Boolean

            Parameters

ApplyChanges

Optional. A boolean value representing whether changes to shapes will be saved. The default is True.
StopEditingTable Optional. A boolean value representing whether the attribute table is set to prevent editing or not. The default is True.
cBack The ICallback object which will receive progress and error messages while the shapefile is set to stop editing shapes.
ReturnValue A boolean value representing the success or failure of stopping editing shapes.

Sample Code

    Private Sub ShapefileStopEditingShapes()
        Dim sf As New MapWinGIS.Shapefile()
        Dim success As Boolean
        'Stop editing shapes in the shapefile, saving changes to shapes, also stopping editing of the attribute table
        success = sf.StopEditingShapes(True, True, Me)
    End Sub
  

VB 6 Usage
Function StopEditingShapes(Optional ApplyChanges As Boolean, Optional StopEditTable As Boolean, Optional cBack As ICallback) As Boolean
            Parameters

ApplyChanges

Optional. A boolean value representing whether changes to shapes will be saved. The default is True.
StopEditingTable Optional. A boolean value representing whether the attribute table is set to prevent editing or not. The default is True.
cBack The ICallback object which will receive progress and error messages while the shapefile is set to stop editing shapes.
ReturnValue A boolean value representing the success or failure of stopping editing shapes.

Sample Code

    Private Sub ShapefileStopEditingShapes()
        Dim sf As New MapWinGIS.Shapefile
        Dim success As Boolean
        'Stop editing shapes in the shapefile, saving changes to shapes, also stopping editing of the attribute table
        success = sf.StopEditingShapes(True, True, Me)
    End Sub

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

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