Web.ApplyTheme method

SharePoint Online

Applies a theme with the specified components to this site.

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

public void ApplyTheme(
	string colorPaletteUrl,
	string fontSchemeUrl,
	string backgroundImageUrl,
	bool shareGenerated
)

Parameters

colorPaletteUrl
Type: System.String

The server-relative URL of the color palette file.

fontSchemeUrl
Type: System.String

The server-relative URL of the font scheme, or a null reference (Nothing in Visual Basic) for no font scheme.

backgroundImageUrl
Type: System.String

The server-relative URL of the background image, or a null reference (Nothing in Visual Basic) for no background image.

shareGenerated
Type: System.Boolean

true if the generated theme files should be placed in the root web, false to store them in this web.

Show: