Maptitude GISDK Help |
Closes a layout window.
CloseLayout(string layout_name)
Argument |
Contents |
layout_name |
The name of the layout, or null for the current layout |
Layers that are referenced only in maps in the layout that is closed are dropped from the system.
CloseLayout() closes the layout window without executing the Close macro.
If there is a Done macro, it is called after the layout window is closed.
// Here's a macro to close all open layouts
lyts = GetWindows("Layout")
for i = 1 to lyts.length do
CloseLayout(lyts[i])
end
Error Type |
Meaning |
NotFound |
There is no layout with the specified name, or layout_name is null and the current window is not a layout window |
Function |
Summary |
Creates a new layout window |
|
Creates a layout from a file |
|
Saves a layout to a file |
©2025 Caliper Corporation | www.caliper.com |