ThmxTheme.GetManagedThemes method
Gets the list of managed themes available in the theme gallery of the given site collection.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetManagedThemes ( _
site As SPSite _
) As ReadOnlyCollection(Of ThmxTheme)
'Usage
Dim site As SPSite
Dim returnValue As ReadOnlyCollection(Of ThmxTheme)
returnValue = ThmxTheme.GetManagedThemes(site)
public static ReadOnlyCollection<ThmxTheme> GetManagedThemes(
SPSite site
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteThe site collection whose themes will be retrieved.
Return value
Type: System.Collections.ObjectModel.ReadOnlyCollection<ThmxTheme>
A read-only collection of themes.