WebWindows Collection
SharePoint Designer Developer Reference |
A collection of WebWindow objects.
Remarks
Each WebWindow object represents an open Web site in Office SharePoint Designer. The WebWindow object is a member of the WebWindows collection.
Use WebWindows(Index), where Index is the index number of an item in the WebWindows collection, to return a single WebWindow object. The following example returns the Caption property for the fourth item in the WebWindows collection.
Visual Basic for Applications |
---|
|
Use the WebWindows property to return the WebWindows collection. The following example closes all of the open WebWindow objects in the WebWindows collection except the ActiveWebWindow object.
Visual Basic for Applications |
---|
|
Use the Application property to return the Application object. If you are working with the WebWindows collection and you want to check the version number of the application, you can easily access it by using the With myWebWindows
statement as shown in the following example.
Visual Basic for Applications |
---|
|
You can use the Close method to close an individual WebWindow object, multiple WebWindow objects, or all WebWindow objects in Office SharePoint Designer. For more details on the Close method, see the usage described in the following table.
Office SharePoint Designer closes the application if you use the Close method to close all WebWindow objects in Office SharePoint Designer.
Close Method Usage | Code | ||||
---|---|---|---|---|---|
Close an individual WebWindow object in the application |
|
||||
Close multiple WebWindow objects in the application (as shown in the previous example) |
|
||||
Close all WebWindow objects in the application |
|
||||
Close an individual WebWindow object in a Web site |
|
||||
Close multiple WebWindow objects in a Web site |
|
||||
Close a collection in a Web site |
|
||||
Closing all WebWindow objects in Office SharePoint Designer functions the same as the Quit method |
The expression Application.WebWindows.Close is the same as Application.Quit . |
Use the Count property to return the number of WebWindow objects in the collection. The following example returns the number of WebWindow objects.
Visual Basic for Applications |
---|
|
Use the Parent property when you want to return the container for the WebWindows collection. The following statement returns the Application object.
Visual Basic for Applications |
---|
|
See Also