EnsureThemedStylesForLocales method

SPTheme.EnsureThemedStylesForLocales method

SharePoint 2013

Generate themed stylesheets for the specified set of locales using the currently applied theme.

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

public static bool EnsureThemedStylesForLocales(
	SPWeb web,
	HashSet<int> languages


Type: Microsoft.SharePoint.SPWeb

The SPWeb to generated themed stylesheets for

Type: System.Collections.Generic.HashSet<Int32>

The list of lcids to generate themed stylesheets for

Return value

Type: System.Boolean
true if successful, false if the specified SPWeb is not currently themed or its theme is corrupted.

It is ok to call this method with an lcid that already has stylesheets generated for it. In that case, stylesheets would be regenerated.

© 2015 Microsoft