SPTheme.OpenAppliedTheme method

SharePoint 2013

Open the theme applied to the specified SPWeb if applicable.

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

public static SPTheme OpenAppliedTheme(
	SPWeb web
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb

The SPWeb to query

Return value

Type: Microsoft.SharePoint.Utilities.SPTheme
An SPTheme object for the theme applied to the specified SPWeb or null if no theme is applied or if a theme is applied but corrupted.

ExceptionCondition
ArgumentNullException

web is null.

Show: