_Document.ApplyTheme(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Applies a theme to an open document.
public:
void ApplyTheme(System::String ^ Name);
public void ApplyTheme (string Name);
abstract member ApplyTheme : string -> unit
Public Sub ApplyTheme (Name As String)
Parameters
- Name
- String
Required String. The name of the theme plus any theme formatting options you want to apply. The format of this string is "theme nnn
" where theme
and nnn
are defined as follows:StringDescriptiontheme
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\Themes.) You must use the folder name for the theme rather than the display name that appears in the Theme dialog box (Theme command, Format menu).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 (Theme command, Format menu). If this string is omitted, the default value for nnn
is "011" (Active Graphics and Background Image are activated).
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應