Share via


WebFile.ApplyTheme Method

SharePoint Designer Developer Reference

Applies the named theme and theme properties to a Web site or Web page.

Syntax

expression.ApplyTheme(ThemeName, ThemeProperties)

expression   A variable that represents a WebFile object.

Parameters

Name Required/Optional Data Type Description
ThemeName Required String A string that contains the name of the theme that you want to apply to a file.
ThemeProperties Optional ThemeProperties The properties associated with the theme.

Remarks

This method applies the value contained in the ThemeName argument to the property named in the ThemeProperties argument. For example, a theme can be applied to a single Web page, a collection of Web pages, the page contained in a page window, or all pages within a Web site.

The ThemeName parameter can be one of the following String values:

aftrnoon classic layers satin
arcs compass level sky
arctic concrete loosegst slate
artsy corporat mdshapes sonora
axis cypress modular spiral
balance deepblue nature spring
bars echo network strtedge
blank eclipse papyrus studio
blends edge passport sumipntg
blitz evergreen piechart sunflowr
blocks expeditn pixel tabs
bluecalm folio poetic technolo
blueprnt glacier profile topo
boldstri global quad travel
breeze highway radial water
canyon ice refined watermar
capsules indust ricepapr waves
cascade inmotion ripple willow
checkers iris rmnsque zero
citrus journal sandston

See Also