Document.ActiveTheme プロパティ (Word)

テーマおよびテーマの書式オプションを指定した文書の名前を返します。 読み取りのみ可能な String 値です。

構文

ActiveTheme

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

注釈

The ActiveTheme property returns "none" if the document doesn't have an active theme. For an explanation of the value returned by this property, see the Name argument of the ApplyTheme method. The value returned by this property may not correspond to the theme's display name. To return a theme's display name, use the ActiveThemeDisplayName property.

次の使用例は、テーマを適用した後、現在の文書で使用されているテーマおよびテーマの書式オプションの名前を表示します。

Sub CheckTheme() 
 ActiveDocument.ApplyTheme "artsy 100" 
 MsgBox ActiveDocument.ActiveTheme 
End Sub

関連項目

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

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

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