A collection of Theme objects. Each Theme object represents a theme associated with an HTML page or a web in Microsoft FrontPage. The Theme object is a member of the Themes collection.
Using the Themes Collection
Use the Themes property to return the Themes collection. The Themes property can be used with either Application or Web objects. The Themes property for the Application object is the collection of themes available in FrontPage. The Themes property for the Web object is the collection of themes applied to the files within a web, or the collection of themes applied to a web. The following statement illustrates both the Themes and Count properties, and returns the number of items in the Themes collection that are available in FrontPage.
myTotalThemeCount = Application.Themes.Count
The following statement returns the number of themes within a web.
myWebThemeCount = Application.Webs(0).Themes.Count
Use Themes(index), where index is the index number of a theme item, to return a single Theme object. The following statement returns the first theme in the Themes collection.
myThemeOne = Web.Themes(0)
Use the Application property to return the Application object. The following example returns the version and build number of FrontPage from within the Themes collection.
Note To run this procedure you must have at least one open web.
Private Sub GetBuildNumber()
Dim myThemes As Themes
Dim myBuild As String
Set myThemes = ActiveWeb.Themes
myBuild = myThemes.Application.Build
End Sub
Use the Parent property when you want to return the container for the Themes collection. For example, the following statement returns the URL associated with the parent container of the Themes collection.
myParentUrl = Web.Themes.Parent.Url