Share via


PageWindows.Close Method

SharePoint Designer Developer Reference

Closes the page specified in the Index parameter, or, if the Index parameter is omitted, closes all open pages in the PageWindows collection.

Syntax

expression.Close(Index, ForceSave, PromptUser)

expression   Required. A variable that represents a PageWindows collection.

Parameters

Name Required/Optional Data Type Description
Index Optional Variant Refers to an individual item in the PageWindows collection. Can be any number corresponding to an item in the collection, with the index starting at zero.
ForceSave Optional Boolean True forces the specified file to be saved before the Close method is completed. Default is False.
PromptUser Optional Boolean True prompts the user before closing the pages. Default is False.

See Also