SaveMap method
Saves the specified map or template. If the map was opened from a template, then the map is saved as "Map.ptm" in the "My Documents" directory.
Applies to
Objects: MappointControl
Syntax
object.SaveMap
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a MappointControl object. |
Remarks
To open a map from a template, use the NewMap method on a MappointControl object.
Example
[Microsoft Visual Basic 6.0]
'Assume the MappointControl on your form is named "MappointControl1"
Private Sub cmdSave_Click()
MappointControl1.SaveMap
End Sub
[C#]
//Assume the MappointControl on your form is named "MappointControl1"
private void saveMap_Click(object sender, System.EventArgs e)
{
MappointControl1.SaveMap();
}