Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPTheme.ApplyTo method

SharePoint 2013

Applies this theme to the given web.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Public Sub ApplyTo ( _
	web As SPWeb, _
	shareGenerated As Boolean _
Dim instance As SPTheme
Dim web As SPWeb
Dim shareGenerated As Boolean

instance.ApplyTo(web, shareGenerated)


Type: Microsoft.SharePoint.SPWeb

The web on which the theme should be applied.

Type: System.Boolean

true if the generated CSS should be shared by all sites in the site collection (stored at the root web); false otherwise


ISPTheme.ApplyTo(SPWeb, Boolean)

If the web had a theme previously applied to it and that theme was not shared, this operation will delete it.

© 2015 Microsoft