Document.ActiveThemeDisplayName プロパティ (Word)

指定された文書のアクティブ テーマの表示名を返します。 読み取りのみ可能な String 値です。

構文

ActiveThemeDisplayName

Document オブジェクトを表す変数。

注釈

The ActiveThemeDisplayName property returns "none" if the document doesn't have an active theme. A theme's display name is the name that appears in the Theme dialog box. This name may not correspond to the string you would use to set a default theme or to apply a theme to a document.

次の使用例は、現在の文書で使用されているテーマの表示名を表示します。

Sub DisplayThemeName() 
 ActiveDocument.ApplyTheme "artsy 100" 
 MsgBox ActiveDocument.ActiveThemeDisplayName 
End Sub

関連項目

ドキュメント オブジェクト

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。