Expand Minimize

Document.ApplyTheme Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Applies a theme to a document, if the document is open.

Namespace:  Microsoft.Office.Tools.Word
Assemblies:   Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

void ApplyTheme(
	string Name
)

Parameters

Name
Type: System.String

The name of the theme plus any theme formatting options you want to apply.

The format of the Name string is "theme nnn" where theme and nnn are defined as follows:

theme – The name of the folder that contains the data for the requested theme. (The default location for theme data folders is C:\Program Files\Common Files\Microsoft Shared\Themes11.) You must use the folder name for the theme rather than the display name that appears in the Theme dialog box.

nnn – A three-digit string that indicates which theme formatting options to activate (1 to activate, 0 to deactivate). The digits correspond to the Vivid Colors, Active Graphics, and Background Image check boxes in the Theme dialog box. If this string is omitted, the default value for nnn is "011" (Active Graphics and Background Image are activated).

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft