ThmxTheme.SetThemeUrlForWeb method (SPWeb, String)
Applies the theme pointed to by the specified URL to the specified web.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub SetThemeUrlForWeb ( _
web As SPWeb, _
themeUrl As String _
)
'Usage
Dim web As SPWeb
Dim themeUrl As StringThmxTheme.SetThemeUrlForWeb(web, themeUrl)
public static void SetThemeUrlForWeb(
SPWeb web,
string themeUrl
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe web where the theme will be applied.
themeUrl
Type: System.StringThe server-relative URL of the theme file.
Remarks
The themed Cascading Style Sheet (CSS) files are stored at the root web and shared for all of the webs in the site collection.